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

HMS-4934: Add modules to introspected data #922

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlsherrill
Copy link
Member

@jlsherrill jlsherrill commented Dec 16, 2024

Summary

Adds module streams as searchable for introspected repos

Testing steps

  1. Adjust go.mod to point to your localy checkout of yummy, which should have HMS-4934: Parse module metadata yummy#31
replace github.com/content-services/yummy => /home/jlsherri/git/yummy/
  1. go get ./...
  2. make db-migrate-up
  3. make repos-import
  4. go run cmd/external-repos/main.go introspect go run cmd/external-repos/main.go introspect https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os
  5. go run cmd/external-repos/main.go introspect go run cmd/external-repos/main.go introspect https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os
  6. play around with the module streams search api:
#### module streams
POST http://localhost:8000/api/content-sources/v1.0/module_streams/search
x-rh-identity: eyJpZGVudGl0eSI6eyJ0eXBlIjoiVXNlciIsInVzZXIiOnsidXNlcm5hbWUiOiIxIn0sImFjY291bnRfbnVtYmVyIjoiZm9vIiwiaW50ZXJuYWwiOnsib3JnX2lkIjoiMSJ9fX0K
Content-Type: application/json

{"urls":["https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os"],
  "search":"",
  "rpm_names": []
}

feel free to play with the search and rpm_names

@jlsherrill
Copy link
Member Author

@jlsherrill jlsherrill changed the title Fixes 4932: Add search module streams Fixes HMS-4932: Add search module streams Dec 17, 2024
@jlsherrill jlsherrill marked this pull request as ready for review December 17, 2024 22:16
@jlsherrill
Copy link
Member Author

@jlsherrill jlsherrill marked this pull request as draft December 18, 2024 17:19
@jlsherrill jlsherrill changed the title Fixes HMS-4932: Add search module streams Fixes HMS-4934: Add modules to introspected data Dec 18, 2024
@jlsherrill
Copy link
Member Author

@jlsherrill
Copy link
Member Author

@jlsherrill jlsherrill changed the title Fixes HMS-4934: Add modules to introspected data HMS-4934: Add modules to introspected data Dec 18, 2024
@jlsherrill
Copy link
Member Author

@jlsherrill jlsherrill marked this pull request as ready for review January 7, 2025 21:01
@swadeley
Copy link
Member

swadeley commented Jan 8, 2025

/retest

@swadeley
Copy link
Member

swadeley commented Jan 8, 2025

@jlsherrill this failed to build

@jlsherrill
Copy link
Member Author

jlsherrill commented Jan 8, 2025

@swadeley yes, it will fail to build until content-services/yummy#31 is merged and i update it to use the new yummy

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.

2 participants