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

feat+refactor: simplify schema and code api #450

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

myungjin
Copy link
Contributor

Description

Maintaining versions for different schemas and codes complicates system logic. Now only one copy of schema and code is maintained for a given design. Every time schema update api call is made, a revision number gets incremented. So does the code. Currently, there is no check on whether contents are actually changed.

Since schema and code don't need version information anymore, the version information got removed from job specification. Instead, revision numbers are introduced so that user can know whether the schema and code in job is those in the schema and code database by comparing revision numbers between job and schema/code.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Maintaining versions for different schemas and codes complicates system logic.
Now only one copy of schema and code is maintained for a given design.
Every time schema update api call is made, a revision number gets incremented.
So does the code. Currently, there is no check on whether contents are actually
changed.

Since schema and code don't need version information anymore, the
version information got removed from job specification.
Instead, revision numbers are introduced so that user can know whether
the schema and code in job is those in the schema and code database by
comparing revision numbers between job and schema/code.
@myungjin myungjin merged commit 3f9af3e into cisco-open:main Sep 20, 2023
3 checks passed
@myungjin myungjin deleted the design_code_api_revision branch September 20, 2023 02:23
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.

1 participant