Skip to content

Added index, completion and references for table names, column names … #351

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

bohdan-harniuk
Copy link
Collaborator

@bohdan-harniuk bohdan-harniuk commented Oct 24, 2020

Description (*)
This PR adds indexes, completion, references, test coverage on completion and references on table and column names in the db_schema.xml file.

image
image
image

Also, was changed the assertHasReferenceToXmlTag method of the BaseReferenceTestCase class to work with PolyVariantReferenceBase type that retrieves multiple references.
image

After that change all tests passed successfully:
image

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch 2 times, most recently from df995c8 to 76b7deb Compare October 24, 2020 10:34
@VitaliyBoyko VitaliyBoyko self-assigned this Oct 24, 2020
@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch 4 times, most recently from 686b767 to b07d4c9 Compare October 24, 2020 11:22
@@ -41,6 +42,7 @@ public static void manualReindex() {
// xml|di configuration
PluginIndex.KEY,
VirtualTypeIndex.KEY,
TableAndColumnNameIndex.KEY,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change it to DeclarativeSchemaElementsIndex to be more self-explanatory

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch from 4eff885 to 3f41361 Compare October 25, 2020 19:19
@VitaliyBoyko VitaliyBoyko self-requested a review October 26, 2020 19:17
Copy link
Contributor

@VitaliyBoyko VitaliyBoyko left a comment

Choose a reason for hiding this comment

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

image
An element should not have a reference to itself ⛔

@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch from 9ae74c5 to d84e03a Compare October 27, 2020 16:30
@bohdan-harniuk
Copy link
Collaborator Author

Fixed "An element should not have a reference to itself".

@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch from d84e03a to 759617a Compare October 27, 2020 16:33
@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch from 759617a to 228d36c Compare October 27, 2020 18:53
@bohdan-harniuk bohdan-harniuk force-pushed the add-index-reference-and-comletion-to-db-schema-tables-and-columns branch from 228d36c to 0ac99de Compare October 27, 2020 18:59
@VitaliyBoyko VitaliyBoyko self-requested a review October 28, 2020 12:13
Copy link
Contributor

@VitaliyBoyko VitaliyBoyko left a comment

Choose a reason for hiding this comment

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

QA passed ✅
image
image

@VitaliyBoyko VitaliyBoyko merged commit 09b3683 into magento:2.1.0-develop Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants