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

Update use of schema API for the pull command #499

Merged
merged 10 commits into from
Dec 10, 2024
Merged

Conversation

ptpaterson
Copy link
Contributor

@ptpaterson ptpaterson commented Dec 10, 2024

Ticket(s): FE-6228

Problem

We do not pass in the version or staged params to calls to get schema files.

Pulling active schema while a staged schema exists is possible, but we block it.

Solution

Pass in the version and staged parameters to /schema/1/files/{filename} endpoint calls.

Update the confirmation message to indicate whether you are going to pull from active or staged schema.

Result

We can pull schema, whether it's staged or not. We utilize OCC with schema versions correctly.

Testing

Added tests that cover usage with the new behavior, including the --staged option.

@ptpaterson ptpaterson requested a review from a team as a code owner December 10, 2024 17:51
@ptpaterson ptpaterson changed the title Fe 6228 schema pull api Update use of schema API for the pull command Dec 10, 2024

logger.debug(
`Pulling remote ${source} schema, version '${version}'.`,
"schema pull",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@echo-bravo-yahoo do we have a preference of these being one word to simplify passing them?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i don't think it would work as expected unless it was a single or hyphenated word

@ptpaterson ptpaterson requested a review from a team December 10, 2024 21:20
@ptpaterson ptpaterson merged commit b1f1cbd into v3 Dec 10, 2024
4 checks passed
@ptpaterson ptpaterson deleted the fe-6228-schema-pull-api branch December 10, 2024 21:42
@mwilde345 mwilde345 mentioned this pull request Dec 10, 2024
@cleve-fauna cleve-fauna mentioned this pull request Dec 13, 2024
@mwilde345 mwilde345 mentioned this pull request Dec 18, 2024
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.

3 participants