-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(appstore): Restrict application updates based on the app's suppo… #7174
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
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| paramByte, _ := json.Marshal(v.AppForm) | ||
| detail.Params = string(paramByte) | ||
| detail.DownloadUrl = fmt.Sprintf("%s/%s", versionUrl, app.Key+"-"+version+".tar.gz") | ||
| detail.DownloadCallBackUrl = v.DownloadCallBackUrl |
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.
The code provided seems to be a part of an application service implementation that syncs apps from remote sources and handles various configurations such as updates, settings, and version control. This information can help you identify and prioritize potential issues or areas for improvement during development.
Here are a few general observations:
- The function
SyncAppListFromRemote()is marked with the "func" keyword. - It appears to contain errors related to missing import statements after the line starting with "set", indicating additional context beyond this snippet may not be included due to language limitations.
- There's mention of setting up Docker Compose but no actual setup functionality is present within the snippet. You would need further context on what exactly is meant by "Docker Compose".
- Comments about updating settings (
settingService Update) seem to imply they refer to external configuration management systems like Kubernetes ConfigMap, rather than implementing manual update via API keys. If these comments were intended for internal usage only and do not correspond specifically to external settings APIs, adjustments should be made accordingly. - The use of placeholder strings like
"baseRemoteUrl"makes it harder to follow when there isn't more specific documentation or example code.
Considering these points, I would suggest looking into the broader context of this package/service or getting access to detailed source codes, if available, for a more comprehensive review.
| SupportVersion float64 `json:"supportVersion"` | ||
| } | ||
|
|
||
| type AppFormFields struct { |
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.
The main difference between the current code and the one from September 1st, 2021 is that it now includes a floating-point number field named 'SupportVersion' which was not present in the original source. Additionally, there seems to be an extra blank line after each opening brace of Go structures.
For further improvements, consider adding comments throughout your code for better readability and maintainability. Also, ensure all data types used within this structure align with expected use cases (float64 vs int).
Optimizing could focus on reducing complexity where possible rather than introducing new fields or operations. If you're looking at performance optimizations across multiple lines of logic related to form handling or version control, please let me know more specifics about what's important to optimize first.
|
wanghe-fit2cloud
left a comment
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.
/lgtm
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wanghe-fit2cloud The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



No description provided.