-
Notifications
You must be signed in to change notification settings - Fork 69
feat(autoinstallation): Make the addon version optional #2239
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 |
|---|---|---|
|
|
@@ -135,7 +135,11 @@ impl<'a> ProductClient<'a> { | |
| .into_iter() | ||
| .map(|(id, version, code)| AddonParams { | ||
| id, | ||
| version, | ||
| version: if version.is_empty() { | ||
| None | ||
| } else { | ||
| Some(version) | ||
| }, | ||
| registration_code: if code.is_empty() { None } else { Some(code) }, | ||
| }) | ||
| .collect(); | ||
|
|
@@ -158,7 +162,7 @@ impl<'a> ProductClient<'a> { | |
| .registration_proxy | ||
| .register_addon( | ||
| &addon.id, | ||
| &addon.version, | ||
| &addon.version.clone().unwrap_or_default(), | ||
|
Contributor
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. Would an empty version work?
Contributor
Author
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. Yes, in the end the backend receives empty version because And if SCC really uses an empty version then it will work too, just using a slightly more complicated path in the code. |
||
| &addon.registration_code.clone().unwrap_or_default(), | ||
| ) | ||
| .await?) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| ------------------------------------------------------------------- | ||
| Tue Apr 1 12:44:57 UTC 2025 - Ladislav Slezák <[email protected]> | ||
|
|
||
| - Make the extension version attribute optional, search the version | ||
| automatically if it is missing (related to jsc#AGM-100) | ||
|
|
||
| ------------------------------------------------------------------- | ||
| Fri Mar 28 21:45:05 UTC 2025 - Josef Reidinger <[email protected]> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| ------------------------------------------------------------------- | ||
| Tue Apr 1 12:44:57 UTC 2025 - Ladislav Slezák <[email protected]> | ||
|
|
||
| - Make the extension version attribute optional, search the version | ||
| automatically if it is missing (related to jsc#AGM-100) | ||
|
|
||
| ------------------------------------------------------------------- | ||
| Fri Mar 28 21:45:56 UTC 2025 - Josef Reidinger <[email protected]> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function could be useful in this case. However, it is not included yet.