-
Notifications
You must be signed in to change notification settings - Fork 619
[TOOL-2764] Dashboard: Fix published contract version selector with duplicate versions #5893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TOOL-2764] Dashboard: Fix published contract version selector with duplicate versions #5893
Conversation
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
b7bfa34 to
5a3f5af
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5893 +/- ##
=======================================
Coverage 55.36% 55.36%
=======================================
Files 1123 1123
Lines 59642 59642
Branches 5056 5056
=======================================
Hits 33023 33023
Misses 25895 25895
Partials 724 724
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
…uplicate versions (#5893) <!-- start pr-codex --> ## PR-Codex overview This PR focuses on refining the contract fetching logic to ensure that only unique published contracts are returned, specifically keeping the latest version of each contract. ### Detailed summary - Introduced a new variable `publishedContracts` to store fulfilled responses. - Added logic to filter out duplicate contracts by version, keeping only the latest occurrence. - Returned the filtered list of unique published contracts. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
5a3f5af to
b781e97
Compare

PR-Codex overview
This PR focuses on refining the handling of published contracts by filtering out duplicates based on version, ensuring that only the latest contract for each version is retained.
Detailed summary
publishedContractsto filter responses for fulfilled statuses.uniquePublishedContractsthat retains only the latest contract for each version.findIndexto identify the first occurrence of each version in the list.