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

Package Upload: Automatically populate the Source Dropdownlist #50

Closed
gep13 opened this issue Sep 25, 2018 · 3 comments
Closed

Package Upload: Automatically populate the Source Dropdownlist #50

gep13 opened this issue Sep 25, 2018 · 3 comments
Assignees
Labels
5 - Released The area addressed in the ticket has been released in the product and is generally available. Edition - Architect Edition - Business Enhancement Enhancements are things that are improvements or features. LicensedExtension Issues affecting the Chocolatey Licensed Extension (chocolatey.extension)

Comments

@gep13
Copy link
Member

gep13 commented Sep 25, 2018

Potential options:

  • Simply select the first source in the list (could be if there is only 1 source available, that this is automatically selected)
  • Pick the highest priority source based on the property of each source
  • Automatically populate with the source that was used last

Selecting based on source priority seems like the best suggestion.

@gep13 gep13 self-assigned this Sep 25, 2018
@ferventcoder
Copy link
Member

@gep13 the sources for pushing are from the apikeys that are saved, not the source list itself as the push URL may differ from the package operations url (where the sources are listed). So curious on some of this?

@gep13
Copy link
Member Author

gep13 commented Oct 18, 2018

@ferventcoder you are absolutely correct.

In the absence of a priority which can be used to decide which source to select by default, I think the best fallback would be to persist the selected source, and then place that back as the default selection when re-starting the application.

This can be implemented in the same way as we do in Chocolatey GUI using LiteDB.

@gep13
Copy link
Member Author

gep13 commented Oct 18, 2018

This issue has been resolved, and will be included in the next release of the Chocolatey Extension.

@gep13 gep13 closed this as completed Oct 18, 2018
@ferventcoder ferventcoder added Enhancement Enhancements are things that are improvements or features. 4 - Done Issues that have been completed and are ready to be released. Edition - Architect Edition - Business labels Mar 8, 2019
@ferventcoder ferventcoder added 5 - Released The area addressed in the ticket has been released in the product and is generally available. and removed 4 - Done Issues that have been completed and are ready to be released. labels Mar 18, 2019
@ferventcoder ferventcoder added the LicensedExtension Issues affecting the Chocolatey Licensed Extension (chocolatey.extension) label Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released The area addressed in the ticket has been released in the product and is generally available. Edition - Architect Edition - Business Enhancement Enhancements are things that are improvements or features. LicensedExtension Issues affecting the Chocolatey Licensed Extension (chocolatey.extension)
Projects
None yet
Development

No branches or pull requests

2 participants