-
Notifications
You must be signed in to change notification settings - Fork 14
CLOUDP-311382: Update foas changelog metadata
command to support upcoming
#748
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ func TestCreateBuild_Run(t *testing.T) { | |
opts := &Opts{ | ||
specRevision: "11110c256dffdb163be71a3ca70854a57fad5f6f", | ||
runDate: "2024-01-01", | ||
versions: []string{"2024-01-01"}, | ||
versions: []string{"2024-01-01", "2024-01-01.upcoming"}, | ||
fs: fs, | ||
} | ||
|
||
|
@@ -47,6 +47,18 @@ func TestCreateBuild_PreRun_InvalidVersion(t *testing.T) { | |
require.ErrorContains(t, opts.PreRun(), "invalid version date") | ||
} | ||
|
||
func TestCreateBuild_PreRun_UpcomingVersion(t *testing.T) { | ||
fs := afero.NewMemMapFs() | ||
opts := &Opts{ | ||
specRevision: "test", | ||
runDate: "2024-01-01", | ||
versions: []string{"2024-01-01.upcoming", "2025-01-01"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: is there chance for us to migrate from string to object with multiple keys in the future? Thinking of all code generation tools we need to invent some parser for custom date format and prefixes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have already the version struct here. You can create a new version struct from a string with this piece of code: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @andreaangiolillo Thank you. Awesome news! Unification can help platform and integrations team as well as we see questions to support stability levels through SDK + other generation methods. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be clear - would format of the versions.json in openapi/sdk change as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, it won't change. It will still be a JSON array. You will start to see upcoming entries like this one: [
"2023-01-01",
"2023-02-01",
"2023-10-01",
"2023-11-15",
"2024-05-30",
"2024-08-05",
"2024-10-23",
"2024-11-13",
"2025-02-19",
"2025-03-12"
"2025-03-12.upcoming"
] There was an issue last week on the dev SDK about this change and was fixed: https://mongodb.slack.com/archives/CHEULRC9W/p1749200548092979?thread_ts=1749199877.955329&cid=CHEULRC9W |
||
fs: fs, | ||
} | ||
|
||
require.NoError(t, opts.PreRun()) | ||
} | ||
|
||
func TestCreateBuilder(t *testing.T) { | ||
test.CmdValidator( | ||
t, | ||
|
Uh oh!
There was an error while loading. Please reload this page.