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

Fixes 2533: Add red hat repositories UI #156

Merged
merged 6 commits into from
Nov 13, 2023

Conversation

Andrewgdewar
Copy link
Member

@Andrewgdewar Andrewgdewar commented Oct 25, 2023

Summary

  • Adds Red hat repositories UI to the content table

Additional Information:

  • This needs to be merged alongside it's sister backend PR found here.

Testing steps

Locally

  • After checking out both this branch, and the backend branch here, make sure to run: make repos-import &&
    go run cmd/external-repos/main.go nightly-jobs; this will populate the Red Hat repositories table.
  • After not to long the repositories should be introspected and you should be able to open the package modal, and close it, confirming that you stay on the correct "Red Hat" table, and the url params stay on "?origin=red_hat
  • If you leave the api to run long enough (takes around 20 minutes from my experience) you'll see the Red Hat repositories snapshot, open the snapshot modal and confirm the same functionality as above.
  • With your tab open on the repositories page, and Red Hat repositories selected under the filter options, click on the popular repositories tab, and then back, the table should remain on the red_hat repositories page. << This functionality and the saving of it through reset can be discussed further, I simply left it this way to start the discussion.
  • When switching between Custom and Red Hat repositories, there is also code that can be uncommented (or removed) to reset the filters upon context change if so desired. << Feed back is also needed on desired outcome here.
  • While on the RedHat repositories, refresh the page, the page should return the correct toggled button and remain.

@jlsherrill
Copy link
Member

@Andrewgdewar Andrewgdewar marked this pull request as ready for review October 27, 2023 15:39
@Andrewgdewar Andrewgdewar changed the base branch from react18preview to main October 30, 2023 20:47
Copy link
Member

@jlsherrill jlsherrill left a comment

Choose a reason for hiding this comment

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

ACK! works great

@jlsherrill
Copy link
Member

and we'll want to wait till content-services/content-sources-backend#435 is merged before merging this one

@swadeley
Copy link
Member

swadeley commented Nov 2, 2023

Hi, I have deployed the two PRs but did not enable snapshotting. I now see that is required so I will do that now. I notice there is no origin= for the custom switch.

@swadeley
Copy link
Member

swadeley commented Nov 3, 2023

Hi @Andrewgdewar , can you rebase this please? I need a new image for testing.

@swadeley
Copy link
Member

swadeley commented Nov 6, 2023

Hi @Andrewgdewar

tested as per comment 0, all working as described apart from snapshotting. After an hour none of the Red Hat repos has a snapshot or an admin task. I deployed with --set-parameter content-sources-backend/FEATURES_SNAPSHOTS_ENABLED=true --set-parameter content-sources-backend/FEATURES_ADMIN_TASKS_ENABLED=true and snapshotting worked for a custom repo.

I think leaving the filter set while moving between the Custom and Red Hat views is OK. Clearing the filter could be annoying unless each view had its own filter or the state was saved somehow .

@Andrewgdewar
Copy link
Member Author

Hi @Andrewgdewar

tested as per comment 0, all working as described apart from snapshotting. After an hour none of the Red Hat repos has a snapshot or an admin task. I deployed with --set-parameter content-sources-backend/FEATURES_SNAPSHOTS_ENABLED=true --set-parameter content-sources-backend/FEATURES_ADMIN_TASKS_ENABLED=true and snapshotting worked for a custom repo.

I think leaving the filter set while moving between the Custom and Red Hat views is OK. Clearing the filter could be annoying unless each view had its on filter or the state was saved somehow .

In CI the RedHat repositories may take quite a while to introspect.
I was also seeing the occasional error if I tried to get them to introspect without waiting 4 - 5 minutes for the pulp to warm up (no idea why there).

@jlsherrill
Copy link
Member

i believe unless you override NIGHTLY_CRON_JOB, it will take up to 8 hours for them to introspect

@swadeley
Copy link
Member

swadeley commented Nov 6, 2023

/retest

@swadeley
Copy link
Member

swadeley commented Nov 7, 2023

Hi, I have redeployed. The repos start introspection immediately, so I will let it run for a few hours. I do wonder why no Admin tasks show up. Maybe because Red Hat repos are not under the control of the Admin user?

@swadeley
Copy link
Member

swadeley commented Nov 7, 2023

Hi, introspection took about an hour, but the UI does not update when it completes. I had to reload the page to see the updated status (Introspecting changed to Valid).

@swadeley
Copy link
Member

swadeley commented Nov 7, 2023

Hi, I see there are now a lot of Admin tasks. Some failed:
Unknown; repository configuration deleted
error: { reason: "Killed by signal 9." }

could just be slow ephemeral test env.

@jlsherrill
Copy link
Member

jlsherrill commented Nov 7, 2023 via email

@swadeley
Copy link
Member

swadeley commented Nov 8, 2023

Hi, I see there are now a lot of Admin tasks. Some failed: Unknown; repository configuration deleted error: { reason: "Killed by signal 9." }

could just be slow ephemeral test env.

Hi, so it seems to me this fronted PR is OK, just backend PR[1] is debatable.

[1] content-services/content-sources-backend#435 (comment)

@swadeley
Copy link
Member

swadeley commented Nov 9, 2023

/retest

1 similar comment
@swadeley
Copy link
Member

/retest

@swadeley
Copy link
Member

lgtm, thank you

@swadeley swadeley merged commit 6126a64 into content-services:main Nov 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants