-
Notifications
You must be signed in to change notification settings - Fork 30
🎨 improve release notes (ignore minor version) #6393
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
base: master
Are you sure you want to change the base?
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 |
---|---|---|
|
@@ -130,9 +130,14 @@ async def create_and_cache_statics_json(app: web.Application) -> None: | |
and product.vendor | ||
and (template_url := product.vendor.get("release_notes_url_template", None)) | ||
): | ||
# template URL should be somethign like: | ||
# As pattern vX.Y.Z is already guaranteed, we replace the the minor version with 0 | ||
parts = vtag.split(".") | ||
parts[-1] = "0" | ||
updated_vtag = ".".join(parts) | ||
|
||
# template URL should be something like: | ||
# https://github.com/ITISFoundation/osparc-issues/blob/master/release-notes/osparc/{vtag}.md | ||
data["vcsReleaseUrl"] = template_url.format(vtag=vtag) | ||
data["vcsReleaseUrl"] = template_url.format(vtag=updated_vtag) | ||
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. This solution is possible but IMO very restrictive. The main idea here should rather be passing as much information to the #lets assume
template_url = product.vendor["release_notes_url_template"]
data["vcsReleaseUrl"] = template_url.format(vtag=vtag, major=major, minor=minor, patch=patch) then in the database (which s more convenient) we could redo at any time the url template without. Here some examples release_notes_url_template = "https://mydoc/{vtag}". # old template format
release_notes_url_template = "https://mydoc/v{major}.{minor}.0" # new
# ...
release_notes_url_template = "https://mydoc/v{major}/{minor}.md" # my prediction for 2025's format So, in summary
|
||
|
||
data_json = json_dumps(data) | ||
_logger.debug("Front-end statics.json: %s", data_json) | ||
|
Uh oh!
There was an error while loading. Please reload this page.