Skip to content
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

Fix: Pushes abandoned SNS to the bottom of the nsAggregatorStore #5918

Merged
merged 16 commits into from
Dec 4, 2024

Conversation

yhabib
Copy link
Contributor

@yhabib yhabib commented Dec 4, 2024

Motivation

As discussed here and here, we have a situation with the SNS CYCLES-TRANSFER-STATION. They have decided to change all their metadata, resulting in the name and token being displayed as ---.

This second PR moves abandoned SNSs to the bottom of both the nsAggregatorStore and any alphabetical sort.

Changes

  • Adds the hidden character "\u200B" to the beginning of the name of an abandoned SNS, so alphabetical sorting pushes them to the end.
  • Sorts nsAggregatorStore by the temporal parameter isAbandoned.

Tests

  • Unit test for the aggregator store derived data to verify that sort functionality works as expected.

Todos

  • Add entry to changelog (if necessary).

Prev. PR: #5915

@yhabib yhabib changed the base branch from main to yhabib/fix/rogue-sns December 4, 2024 13:58
Base automatically changed from yhabib/fix/rogue-sns to main December 4, 2024 14:36
@yhabib yhabib changed the title Fix: ... Fix: Pushes abandoned SNS to the bottom of the nsAggregatorStore Dec 4, 2024
@yhabib yhabib marked this pull request as ready for review December 4, 2024 14:51
@yhabib yhabib requested a review from a team as a code owner December 4, 2024 14:51
Copy link
Contributor

@dskloetd dskloetd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubber stamp

@yhabib yhabib added this pull request to the merge queue Dec 4, 2024
@yhabib yhabib removed this pull request from the merge queue due to a manual request Dec 4, 2024
@yhabib yhabib added this pull request to the merge queue Dec 4, 2024
@yhabib yhabib removed this pull request from the merge queue due to a manual request Dec 4, 2024
@yhabib yhabib enabled auto-merge December 4, 2024 17:15
@yhabib yhabib added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 82688b6 Dec 4, 2024
30 checks passed
@yhabib yhabib deleted the yhabib/fix/rogue-sns-sort branch December 4, 2024 17:40
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
…5948)

# Motivation

This is a follow-up to #5918 regarding the display of SNS projects in
the Launchpad section. We aim to sort them in descending order, from
newest to oldest.
This initial PR introduces a function to sort based on
`swapOpenTimestampSeconds`.
The subsequent PR will implement the requirements outlined in
[NNS-3497](https://dfinity.atlassian.net/jira/software/c/projects/NNS1/boards/333?selectedIssue=NNS1-3497).

# Changes

- New descending sort function based on SNS summary
`swapOpenTimestampSeconds`.

# Tests

- Unit tests

# Todos

- [ ] Add entry to changelog (if necessary).
Not necessary
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
# Motivation

This is a follow-up to #5918 regarding the display of SNS projects in
the Launchpad section. We aim to sort them in descending order, from
newest to oldest.


https://github.com/user-attachments/assets/7e89bddd-64fc-44f2-badf-752d35b1a773

# Changes

- Applies new sort functionality to the Launchpad page
- Changes section title to `Latest Launches`

# Tests

- Unit tests to ensure that the `Projects` component always displays
projects from newest to oldest.

# Todos

- [x] Add entry to changelog (if necessary).

Prev: #5948

---------

Co-authored-by: pr-automation-bot-public[bot] <189003650+pr-automation-bot-public[bot]@users.noreply.github.com>
Co-authored-by: gix-bot <[email protected]>
Co-authored-by: David de Kloet <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
# Motivation

Follow up of #5918. It simplifies the process of locating and renaming
abandoned projects.

# Changes

- Simplifies the process of finding and renaming abandoned projects.
- Replaces the name and token only if the values differ from the
originals.

# Tests

- Adds unit test to cover new logic

# Todos

- [ ] Add entry to changelog (if necessary).
Not necessary

---------

Co-authored-by: pr-automation-bot-public[bot] <189003650+pr-automation-bot-public[bot]@users.noreply.github.com>
Co-authored-by: gix-bot <[email protected]>
Co-authored-by: David de Kloet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants