-
Notifications
You must be signed in to change notification settings - Fork 355
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
Conversation
Signed-off-by: Giuseppe Nespolino <g.nespolino@gmail.com>
There was a problem hiding this 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!
dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/ResourceTableController.java
Show resolved
Hide resolved
* @param type the table type | ||
* @return true if citus should be skipped, false otherwise | ||
*/ | ||
public boolean isSkippedCitusType(AnalyticsTableType type) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @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>
This PR introduces a parameter
skipCitusTables
in theResourceController
, to allow selectively and dynamically skipping the distribution of tables even when Citus is enabled.