Giter Club home page Giter Club logo

Comments (15)

asr2003 avatar asr2003 commented on July 23, 2024 1

from highlight.

linear avatar linear commented on July 23, 2024

HIG-4663 dashboard group by options show duplicates

from highlight.

greptile-apps avatar greptile-apps commented on July 23, 2024

To resolve the issue of duplicate group by options in the dashboard, follow these steps:

  1. Dashboard.tsx: Ensure that the Graph component's props are correctly managed to avoid duplicates. Specifically, check the groupByKey prop.

  2. DashboardOverview.tsx: Verify that the data fetched by useGetVisualizationsQuery does not contain duplicates. You may need to filter the results before setting the state.

  3. CreateDashboardModal.tsx: When creating a new dashboard, ensure that the options for grouping are unique. This can be done by filtering the options before rendering them in the modal.

  4. DashboardsContext.tsx: Ensure that the context provider does not introduce duplicates when managing the state of dashboards and their group by options.

Example code snippet to filter duplicates:

const uniqueOptions = options.filter((option, index, self) =>
  index === self.findIndex((o) => (
    o.value === option.value
  ))
);

Apply this filtering logic wherever the group by options are set or rendered.

References

/frontend/src/pages/Graphing/Dashboard.tsx
/frontend/src/pages/Graphing/DashboardOverview.tsx
/frontend/src/pages/Dashboards/components/CreateDashboardModal/CreateDashboardModal.tsx
/frontend/src/pages/Dashboards/DashboardsContext/DashboardsContext.tsx

Ask Greptile

from highlight.

Vadman97 avatar Vadman97 commented on July 23, 2024

/bounty $30

from highlight.

algora-pbc avatar algora-pbc commented on July 23, 2024

💎 $30 bounty • Highlight (YC W23)

Payment will be awarded to the first person to successfully merge a PR meeting all requirements. In the event that multiple PRs are submitted for the issue, we will award payment to the highest quality PR (the one that has cleanest code, best test coverage, most thorough, etc.).

Steps to solve:

  1. Start working: Comment /attempt #8580 with your implementation plan
  2. Submit work: Create a pull request including /claim #8580 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to highlight/highlight!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @rituraj12797 May 16, 2024, 12:54:09 PM WIP
🟢 @asr2003 May 20, 2024, 2:56:57 AM WIP
🔴 @hunxjunedo Jun 7, 2024, 3:39:50 PM WIP
🟢 @rajeshj11 #8745

from highlight.

xonx4l avatar xonx4l commented on July 23, 2024

Assign me on this as I think I am close to a solution . Thanks

from highlight.

rituraj12797 avatar rituraj12797 commented on July 23, 2024

/attempt #8580

from highlight.

rajeshj11 avatar rajeshj11 commented on July 23, 2024

@Vadman97 can you please provide more context to help us better understand the issues at hand? A screenshot or recording would be greatly helpful.

from highlight.

asr2003 avatar asr2003 commented on July 23, 2024

/attempt #8580

from highlight.

hunxjunedo avatar hunxjunedo commented on July 23, 2024

/attempt #8580 hey @Vadman97 , it's been three weeks since the last pull request. Can I get assigned ?

Algora profile Completed bounties Tech Active attempts Options
@hunxjunedo 1 bounty from 1 project
JavaScript
Cancel attempt

from highlight.

asr2003 avatar asr2003 commented on July 23, 2024

from highlight.

rajeshj11 avatar rajeshj11 commented on July 23, 2024

Hey! I.have almost done with issue except the big fixes. I am crashing with pc memory issues.So made this late. Will complete it asap

On Fri, 7 Jun, 2024, 9:10 pm Hunain Ahmed, @.> wrote: /attempt #8580 <#8580> hey @Vadman97 https://github.com/Vadman97 , it's been three weeks since the last pull request. Can I get assigned ? Algora profile https://console.algora.io/@/hunxjunedo Completed bounties Tech Active attempts Options @hunxjunedo https://github.com/hunxjunedo 1 bounty from 1 project JavaScript Cancel attempt https://console.algora.io/api/bounties/clw8f7ky5000jky09i4p4tqe6/cancel-attempt — Reply to this email directly, view it on GitHub <#8580 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGXZB6C5CDNXHMBKGQWBBQDZGHH5ZAVCNFSM6AAAAABHYO42AOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGA4DQMZSG4 . You are receiving this because you were mentioned.Message ID: @.>

Hey, If you don't mind. can you share the recording of what the issue is? I was not able to replicate it. I could help.
I mean the ticket bug issue, not your internal crashes.

from highlight.

rajeshj11 avatar rajeshj11 commented on July 23, 2024

@Vadman97 If it is possible. can I get a screenshot or recording of the issue? I could not able to replicate it

from highlight.

algora-pbc avatar algora-pbc commented on July 23, 2024

💡 @rajeshj11 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

from highlight.

algora-pbc avatar algora-pbc commented on July 23, 2024

🎉🎈 @rajeshj11 has been awarded $30! 🎈🎊

from highlight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.