Repository navigation
Add API change detection - #6440
Merged
Merged
Conversation
- Some provided options were not correct
- `/api/plugins/activate` routed to PluginActivate view - Must be associated with a specific plugin ID
…-api-docs # Conflicts: # InvenTree/InvenTree/api.py # InvenTree/InvenTree/settings.py # InvenTree/common/api.py # InvenTree/plugin/api.py # InvenTree/stock/api.py # InvenTree/users/api.py
- Specify serializer - Use RetrieveAPI class type
# Conflicts: # InvenTree/users/api.py # requirements.txt
he might be anonymously creating the schema ;-)
matmair
marked this pull request as ready for review
February 8, 2024 01:01
Member
Author
|
@SchrodingersGat this is ready for review once #6329 is done and was functionally tested here https://github.com/matmair/InvenTree/actions/runs/7823154486/job/21343712429 see result here inventree/schema@2227b49 |
Merged
SchrodingersGat
approved these changes
Feb 12, 2024
Member
|
@matmair LGTM - let me know what you need setup in terms of tokens. Do you want me to merge now, or more testing required? |
Member
Author
|
@SchrodingersGat I have the needed token already prepared (also in 1password), I will send you a link directly. This was already tested on my fork, can be merged after the repo secret is added. |
Member
|
@matmair many thanks for this addition - it will be a great feature to be able to track API schema files in this manner. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a follow-up to #6319 and adds a CI step that checks if the API schema was changed. If the api_version file was not changed but the diff between the published version of the schema and the worktree version of the schema is not clean the Job fails.
If the api_version file was changed and the CI runs on master the new schema is pushed to the reference repo (it needs a PAT for that).
Closes #6269
Closes #5861