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

Fixes generate-changelog view comments for Postgres (DAT-9410) #3403

Merged
merged 5 commits into from
Nov 4, 2022

Conversation

abrackx
Copy link
Contributor

@abrackx abrackx commented Oct 24, 2022

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

  • Adds SetViewRemarksGenerator, SetViewRemarksStatement, updates CreateViewChange to use new view specific classes. Handles oracle and postgres view comment creation for generate-changelog. Updates DiffChangelogTest to look for view comments since that uses the same code path.
  • Updates MissingViewChangeGenerator to iterate through columns and generate column comments.

Things to be aware of

New statement available.
I tried to create a MissingViewColumnRemarksChangeGenerator however there's a problem with conflicting priorities. Both MissingViewColumnRemarksChangeGenerator and MissingColumnChangeGenerator need to operate basically at the same priority (PRIORITY_DEFAULT for when a column object type is detected).

Things to worry about

Now we're handling column comments in a view specific generator.

Additional Context

N/A

…ates CreateViewChange to use new view specific classes. Handles oracle and postgres view comment creation. Updates DiffChangelogTest to look for view comments.
@abrackx abrackx self-assigned this Oct 24, 2022
@github-actions
Copy link

github-actions bot commented Oct 24, 2022

Unit Test Results

  4 668 files  ±  0    4 668 suites  ±0   36m 27s ⏱️ + 5m 25s
  4 642 tests +18    4 416 ✔️ +21     226 💤  - 3  0 ±0 
54 708 runs  +12  49 645 ✔️ +17  5 063 💤  - 5  0 ±0 

Results for commit edb71a2. ± Comparison against base commit 9d6d144.

♻️ This comment has been updated with latest results.

@abrackx abrackx marked this pull request as ready for review October 24, 2022 14:10
@abrackx abrackx changed the title Adds SetViewRemarkStatement, SetViewRemarkGenerator (DAT-9410) Fixes view comments for Postgres (DAT-9410) Oct 26, 2022
@abrackx abrackx changed the title Fixes view comments for Postgres (DAT-9410) Fixes generate-changelog view comments for Postgres (DAT-9410) Oct 26, 2022
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.

None yet

5 participants