Skip to content

Add API change detection - #6440

Merged
SchrodingersGat merged 63 commits into
inventree:masterfrom
matmair:matmair/issue6269
Feb 13, 2024
Merged

SchrodingersGat merged 63 commits into
inventree:masterfrom
matmair:matmair/issue6269

Conversation

@matmair

@matmair matmair commented Feb 7, 2024 •

Copy link
Copy Markdown
Member

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

SchrodingersGat and others added 30 commits December 16, 2023 11:40
- 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
matmair marked this pull request as ready for review February 8, 2024 01:01
@matmair

matmair commented Feb 8, 2024

Copy link
Copy Markdown
Member Author

@SchrodingersGat

Copy link
Copy Markdown
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?

@matmair

matmair commented Feb 12, 2024

Copy link
Copy Markdown
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.

@SchrodingersGat
SchrodingersGat merged commit 0c2f1cc into inventree:master Feb 13, 2024
@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair many thanks for this addition - it will be a great feature to be able to track API schema files in this manner.

@matmair matmair mentioned this pull request Feb 13, 2024
@matmair
matmair deleted the matmair/issue6269 branch February 13, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI / unit testing ecosystem enhancement This is an suggested enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] API schema tracking in QC

2 participants