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

feat: skip citus dynamically [DHIS2-18134] #18720

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

gnespolino
Copy link
Contributor

This PR introduces a parameter skipCitusTables in the ResourceController, to allow selectively and dynamically skipping the distribution of tables even when Citus is enabled.

Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
@gnespolino gnespolino added run-api-tests This label will trigger an api-test job for the PR. run-api-analytics-tests Enables analytics e2e tests labels Oct 2, 2024
Copy link
Contributor

@maikelarabori maikelarabori left a comment

Choose a reason for hiding this comment

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

Looks good, minor comments. Thx!

* @param type the table type
* @return true if citus should be skipped, false otherwise
*/
public boolean isSkippedCitusType(AnalyticsTableType type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public boolean isSkippedCitusType(AnalyticsTableType type) {
public boolean skipCitusType(AnalyticsTableType type) {

@@ -103,6 +106,16 @@ public boolean isSkipPrograms() {
return !skipPrograms.isEmpty();
}

/**
* Indicates whether the export process should skip citus for the given table type.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Indicates whether the export process should skip citus for the given table type.
* Indicates whether the export process should skip Citus table for the given table type.

* Indicates whether the export process should skip citus for the given table type.
*
* @param type the table type
* @return true if citus should be skipped, false otherwise
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return true if citus should be skipped, false otherwise
* @return true if Citus should be skipped, false otherwise

Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
@gnespolino gnespolino merged commit f8ed267 into DHIS2-15548_2.42 Oct 3, 2024
11 checks passed
@gnespolino gnespolino deleted the DHIS2-18134__Skip_Citus branch October 3, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-analytics-tests Enables analytics e2e tests run-api-tests This label will trigger an api-test job for the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants