-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add database for tracking pins and base implementation for pin commands #2769
Conversation
This thing's full of TODOs, many of them intentionally left for the future, but do tell me if there's any I should resolve for this PR. |
Co-authored-by: Kaleb Luedtke <trenlymc@gmail.com>
This comment has been minimized.
This comment has been minimized.
# Conflicts: # src/AppInstallerCLITests/AppInstallerCLITests.vcxproj.filters # src/AppInstallerCommonCore/AppInstallerCommonCore.vcxproj # src/AppInstallerCommonCore/AppInstallerCommonCore.vcxproj.filters # src/AppInstallerCommonCore/Public/AppInstallerRuntime.h
Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
…nningIndexInterface_1_0.cpp Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>
Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
{ | ||
Resource::String::SearchId, | ||
Resource::String::SearchSource, | ||
Resource::String::SearchVersion, |
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.
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.
I don't think we need it. I believe a user would easily understand what we mean if the header is "Version" and the value is something like "1.2.*". I also didn't actually use "gated version" in any of the resource strings, just in logs and names in the code, so it's not something they'd have seen elsewhere.
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 adds a database for tracking pins and a basic implementation of the
pin
commands to add, remove and list them. The implementation for the database is roughly copied from the database for portable packages.IPinningIndex
and a v1.0 implementation for it. The database contains a single table, where each pin is a separate row. The fields for each pin areA package available from multiple sources could have multiple independent pins. The operations allowed are adding a pin (
pin add
), updating a pin (pin add --force
), removing a pin (pin remove
), getting all pins (pin list
), resetting all pins (pin reset --force
), and getting a single pin (to be used on update/install).pin
commands with the basic functionality of adding, removing and querying.What is missing from this PR:
Related to #476 and #2611 but does not resolve them yet
Microsoft Reviewers: Open in CodeFlow