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

Improve index dependency consistency check #2247

Merged
merged 5 commits into from
Jun 22, 2022

Conversation

yao-msft
Copy link
Contributor

@yao-msft yao-msft commented Jun 16, 2022

Change

  • Added dependency check across the index
  • Fixed an issue when a dependency with no min version added
  • Improved arp version consistency check with log option

Validation

Added unit tests

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner June 16, 2022 20:39
@@ -426,7 +426,7 @@ namespace AppInstaller::Repository::Microsoft::Schema::V1_4
.LeftOuterJoin(VersionTable::TableName())
.On(QCol(s_DependenciesTable_Table_Name, s_DependenciesTable_MinVersion_Column_Name), QCol(VersionTable::TableName(), SQLite::RowIDName))
.Where(QCol(ManifestTable::TableName(), SQLite::RowIDName)).IsNull()
.Or(QCol(VersionTable::TableName(), SQLite::RowIDName)).IsNull()
.Or(QCol(VersionTable::TableName(), SQLite::RowIDName)).IsNull().And(QCol(s_DependenciesTable_Table_Name, s_DependenciesTable_MinVersion_Column_Name)).IsNotNull()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully SQL's logical operator precedence is doing what you want here...

@yao-msft yao-msft merged commit 8774f0f into microsoft:master Jun 22, 2022
@yao-msft yao-msft deleted the depconsistency branch June 22, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants