Skip to content

Conversation

Rrego6
Copy link
Contributor

@Rrego6 Rrego6 commented Dec 5, 2019

  • Reverted seperate handling of .json files.
  • Added functionality of DbScehmaScanner to view the corresponding db_schema.xml or
    db_schema_whitelist.json if one is changed.

Description (*)

Fixed Issues (if relevant)

  1. magento/magento-semver#<issue_number>: Issue title

Manual testing scenarios (*)

  1. ...

  2. ...

Questions or comments

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 unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)
- Reverted seperate handling of .json files. - Added functionality of DbScehmaScanner to view the corresponding db_schema.xml or db_schema_whitelist.json if one is changed.
return;
}
if ($this->isXml($file)) {
if ($this->isXml($file) && !$this->isXmlAlreadyScanned($file)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the case of this workaround here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its necessary for the case where db_schema.xml and db_schema_whitelist.json both have changes.
Without this check. db_schema.xml and db_schema_whitelist.json will both be scanned twice.

@slavvka
Copy link
Member

slavvka commented Dec 13, 2019

Hey @Rrego6 I fixed the issue with introduction a separate SourceWithJsonFilter which is used only when generating a report. For changed files the original one is used. It is already merged. Feel free to update this PR to fix that.

@Rrego6
Copy link
Contributor Author

Rrego6 commented Dec 16, 2019

I will close as this fix isn't necessary anymore.

@Rrego6 Rrego6 closed this Dec 16, 2019
@roribio roribio deleted the MC-22691 branch February 28, 2020 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants