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

Migrate runs to archive table according to user/group configuration - dry-run #3647

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

ekazachkova
Copy link
Contributor

@ekazachkova ekazachkova commented Aug 22, 2024

relates #3619

Provides ability to enable dry-run regime using system.archive.run.dry-run.regime system property (default: off).

  • all load queries shall be logged
  • all update queries shall be logged (excluding batch queries) and omitted

@ekazachkova ekazachkova requested a review from SilinPavel August 22, 2024 08:53
@ekazachkova ekazachkova marked this pull request as draft August 22, 2024 09:27
@ekazachkova ekazachkova marked this pull request as ready for review August 22, 2024 09:43
@@ -93,6 +96,9 @@ public class PipelineRunDao extends NamedParameterJdbcDaoSupport {
@Autowired
private RunServiceUrlDao serviceUrlDao;

@Autowired
Copy link
Member

Choose a reason for hiding this comment

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

would it be possible to inherit from this class instead of have it as dep? And then, you can move 1686-1689 lines to JdbcTemplateReadOnlyWrapper. it should slightly reduce number of copy-paste lines in a future, when we will reuse this approach for other DAOs, if needed.

P.S. with this approach it would be better to rename JdbcTemplateReadOnlyWrapper as JdbcTemplateWithDryRunWrapper

@SilinPavel SilinPavel merged commit 1bc8cd8 into develop Aug 22, 2024
4 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.

2 participants