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

internal/v1: export snapshot date #1406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avitova
Copy link
Contributor

@avitova avitova commented Nov 18, 2024

I started a conversation about importing and exporting snapshot dates. Our team thought that it would be convenient to export the snapshot date. We might have a follow-up discussion about importing it as well, but there are some issues that we need to handle.
In the wizard, we currently do not limit how much in the history the user can pick the snapshot date, so maybe we can just import it as is on the front end. @croissanne ? But then, users also import custom repositories, and they would most likely not have that snapshot from the history.
The discussion's outcome was to keep the feature without importing the snapshot date, but we will keep that option for the future. What do we think? We can mention somewhere that this value is not being imported.

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
internal/v1/api.go 49.02% <ø> (ø)
internal/v1/handler_blueprints.go 71.76% <100.00%> (+0.16%) ⬆️

Copy link
Collaborator

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

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

Thanks @avitova ! I think it's great 👍 Would love to hear @croissanne opinion before merge tho :)

type: string
description: |
Importing the snapshot date will not yet be supported. It is exported for informative reasons.
The format is YYYY-MM-DD.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isntt there a date type in OpenAPI JSON Schema?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be, but I would probably leave this in the same format that we have in the image requests snapshot_date field for consistency.

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