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

Implement navigation implicit tags, Bug fixes for GAIAPLAT-1151,1188,1164,1191,1180,1172,796,803 #878

Merged
merged 21 commits into from
Aug 30, 2021

Conversation

fineg74
Copy link
Contributor

@fineg74 fineg74 commented Aug 26, 2021

No description provided.

fineg74 and others added 16 commits August 16, 2021 21:16
* New/modified tests for implicit queries

* correct a condition in a rule
…mplicitTags

# Conflicts:
#	production/tools/gaia_translate/src/main.cpp
…#867)

* New/modified tests for implicit queries

* correct a condition in a rule

* Tests updated for recent features/fixes

* test annotations after cross-checking with Jira

* removed ifdef around one fixed test
@@ -2124,6 +2156,7 @@ static bool validateRuleAttribute(StringRef attribute,
{
if (returnValue)
{
llvm::errs()<<"0\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems a forgotten debug line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Contributor

@simone-gaia simone-gaia left a comment

Choose a reason for hiding this comment

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

LGTM just a nit about a forgotten comment.

@@ -45,6 +45,8 @@ checks.json

# Integration/Performance Test files.
production/tests/Pipfile.lock

third_party/production
Copy link
Contributor

Choose a reason for hiding this comment

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

did you mean to add this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not my change. Either merge artifact or Wayne change

gaia::db::commit_transaction();

gaia::rules::test::wait_for_rules_to_complete();

ASSERT_EQ(g_test_mixed_value, 2);
ASSERT_EQ(g_test_mixed_value, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Btw, in PR-882, I have changed the rules engine so it won't even fire the rule if the anchor row is invalid. So you could remove any code to check for a valid anchor.

Copy link
Contributor

Choose a reason for hiding this comment

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

This PR is also a reminder that I need to fixup these gaia_translate tests as I probably broke them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is Wayne's change

@@ -33,7 +33,7 @@ ruleset test4
}

// TESTCASE: break from multiple outer loops from implicit query
// GAIAPLAT-1073
// GAIAPLAT-1073 (won't do)
Copy link
Contributor

Choose a reason for hiding this comment

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

If these are won't do should we just remove the tests? (Probably a Wayne question?)

@@ -45,7 +42,7 @@ ruleset test16
ruleset test17
{
{
x.value++; // expected-error {{Table 'x' was not found in the catalog. Ensure that the table you are referencing in your rule exists in the database.}} \
x.value++; // expected-error {{Table 'x' was not found in the catalog}} \
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see a change to the error message in DiagnosticSemaKinds.td won't this fail the llvm-test? (err_table_not_found has the message about ensuring the table exists in the database).

Copy link
Contributor

@daxhaw daxhaw left a comment

Choose a reason for hiding this comment

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

No blocking comments.

…mplicitTags

# Conflicts:
#	production/schemas/test/prerequisites/prerequisites.ddl
@fineg74 fineg74 merged commit 5250086 into master Aug 30, 2021
@fineg74 fineg74 deleted the ExplicitNavigationImplicitTags branch August 30, 2021 18:21
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.

4 participants