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

2232 only newest slugs autocomplete #615

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

TylerZeroMaster
Copy link
Contributor

fixes openstax/ce#2232

  • Only list slugs from the newest commit in the book autocomplete list

A more long-term solution might be to switch around the version and book input boxes, so that it is intuitive to enter version before book, have version default to main, and have the frontend query for the slugs based on repository and version.

Current version

Lists all books known to have existed in any version of the repository

Screenshot 2024-06-05 at 1 39 02 PM

New version:

Lists books that exist in the newest commit on the repository (regardless of branch)

Screenshot 2024-06-05 at 1 38 40 PM

- Add new commit and book to test data
- Test that the newest commit's books are returned
Probably not needed, but why leave to chance what we can control?
@TylerZeroMaster TylerZeroMaster requested a review from a team June 5, 2024 19:09
@TylerZeroMaster TylerZeroMaster self-assigned this Jun 5, 2024
@TylerZeroMaster TylerZeroMaster merged commit a0dae1a into main Jun 10, 2024
2 checks passed
@TylerZeroMaster TylerZeroMaster deleted the 2232-only-newest-slugs-autocomplete branch June 10, 2024 15:32
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