Skip to content

Fix CI linting for Namex Solr Importer#29

Merged
stevenc987 merged 11 commits intobcgov:mainfrom
stevenc987:main
Feb 4, 2026
Merged

Fix CI linting for Namex Solr Importer#29
stevenc987 merged 11 commits intobcgov:mainfrom
stevenc987:main

Conversation

@stevenc987
Copy link
Collaborator

*Issue:*https://github.com/bcgov/entity/issues/#31712

Description of changes:
Fixed Linter configs in the CI for https://github.com/bcgov/namex-search/tree/main/namex-solr-importer are broken.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Copy link
Collaborator

@ozamani9gh ozamani9gh left a comment

Choose a reason for hiding this comment

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

have a look at my two comments, if you are happy with what you have done i can approve this PR

return cx_Oracle.SessionPool(
user=current_app.config.get("ORACLE_USER"),
password=current_app.config.get("ORACLE_PASSWORD"),
dsn=dsn,
Copy link
Collaborator

Choose a reason for hiding this comment

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

dsn=dsn is hard to read should we rename variable something beside dsn.

# POSSIBILITY OF SUCH DAMAGE.
"""Test Suite to ensure reindexing works as expected."""

def test_data_import_handler(app):
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does app do... do we need to still pass it to the TEST

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  1. I have changed the name of dns
  2. This app was not used in the test codes so it got complaint by commands in the CI. That was why I removed it.

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Copy link
Collaborator

@ozamani9gh ozamani9gh left a comment

Choose a reason for hiding this comment

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

LGTM

@stevenc987 stevenc987 merged commit b6f829b into bcgov:main Feb 4, 2026
5 checks passed
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.

3 participants