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

add migration for MongoDB supportsProfiler = true #15254

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

sushi30
Copy link
Contributor

@sushi30 sushi30 commented Feb 19, 2024

Describe your changes:

Add migration for MongoDB profiler support.
Depends on:

Type of change:

  • Improvement

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • I have added tests around the new logic.
  • For connector/ingestion changes: I updated the documentation.

@github-actions github-actions bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Feb 19, 2024
@harshach
Copy link
Collaborator

@sushi30 we are not using the flyway for new migrations. Please use native migrations to add this change

Copy link
Collaborator

@harshach harshach left a comment

Choose a reason for hiding this comment

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

We need to add this in native migrations

@sushi30
Copy link
Contributor Author

sushi30 commented Feb 20, 2024

@harshach done

@@ -0,0 +1,4 @@
-- Add the supportsProfiler field to the MongoDB connection configuration
UPDATE dbservice_entity
SET json = JSON_INSERT(json, '$.connection.config.supportsProfiler', TRUE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be 1.3.1 though? If we'll deploy all these NoSQL thingies by 1.3.2 - 1.4.0, might be better to leave the 1.3.1 clean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to 1.4.0

harshach
harshach previously approved these changes Feb 20, 2024
# Conflicts:
#	ingestion/src/metadata/profiler/adaptors/mongodb.py
#	ingestion/src/metadata/profiler/adaptors/nosql_adaptor.py
#	ingestion/src/metadata/profiler/interface/nosql/profiler_interface.py
#	ingestion/tests/integration/profiler/test_nosql_profiler.py
@sushi30
Copy link
Contributor Author

sushi30 commented Feb 26, 2024

resolved conflicts

@sushi30 sushi30 merged commit ec3eb29 into main Feb 27, 2024
11 checks passed
@sushi30 sushi30 deleted the mongodb-profiler-support-migration branch February 27, 2024 07:41
TeddyCr added a commit that referenced this pull request Feb 28, 2024
pmbrull added a commit to pmbrull/OpenMetadata that referenced this pull request Feb 28, 2024
TeddyCr added a commit to TeddyCr/OpenMetadata that referenced this pull request Feb 28, 2024
TeddyCr added a commit that referenced this pull request Feb 28, 2024
* Revert "add migration for MongoDB supportsProfiler = true (#15254)"

This reverts commit ec3eb29.

* Revert "MINOR: Mongodb column profile (#15252)"

This reverts commit 50b2709.

* Revert "MINOR: modified nosql factory to not use pymongo (#15316)"

This reverts commit bdf2745.

* Revert "MINOR: add MongoDB sample data (#15237)"

This reverts commit ff2ecc5.

* Revert "MINOR: add test for sqla compiler (#15275)"

This reverts commit 4967e09.

* Revert "Fixes #10013: Implement first stage of NoSQL profiler (#15189)"

This reverts commit 18c22c4.

* chore: added tests back after revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants