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 elastic documents purge job #209

Merged
merged 8 commits into from
Jan 7, 2025

Conversation

Ismail731404
Copy link
Member

No description provided.

@Ismail731404 Ismail731404 self-assigned this Dec 30, 2024
@Ismail731404 Ismail731404 marked this pull request as draft December 30, 2024 15:50
Copy link

github-actions bot commented Dec 30, 2024

Go test coverage: 11.6% for commit 44af50d
⚠️ 22 of 51 packages have zero coverage.
  • github.com/myrteametrics/myrtea-engine-api/v5
  • github.com/myrteametrics/myrtea-engine-api/v5/docs
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/app
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/config/connectorconfig
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/config/esconfig
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/config/externalconfig
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/connector
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/evaluator
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/action
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/draft
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/issues
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/rootcause
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/metrics
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/router
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/router/oidc
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/rule
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/search
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/security/roles
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/security/users
  • github.com/myrteametrics/myrtea-engine-api/v5/internals/variablesconfig
  • github.com/myrteametrics/myrtea-engine-api/v5/plugins/baseline
View coverage for all packages
# Package Name                                                                   | Coverage
- github.com/myrteametrics/myrtea-engine-api/v5                                  |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/docs                             |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/app                    |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/calendar               |    29.2%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/config/connectorconfig |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/config/esconfig        |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/config/externalconfig  |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/connector              |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/coordinator            |     7.2%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/email                  |    72.4%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/evaluator              |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer              |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/action       |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/draft        |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/issues       |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/explainer/rootcause    |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/export                 |    60.7%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/fact                   |    50.7%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/fact/lexer             |   100.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/handlers               |     3.8%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/handlers/render        |     9.8%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/history                |     2.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/ingester               |    10.8%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/metrics                |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/modeler                |    27.7%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/models                 |     4.5%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/notifier               |    36.4%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/notifier/notification  |    33.5%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/processor              |    36.6%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/reader                 |     8.5%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/router                 |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/router/auth            |    75.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/router/oidc            |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/rule                   |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/scheduler              |     5.9%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/search                 |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/security/permissions   |    30.3%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/security/roles         |     0.0%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/security/users         |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/service                |    73.9%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/situation              |     6.5%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/tasker                 |    14.8%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/tests                  |    36.6%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/utils                  |   100.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/internals/utils/queryutils       |    77.8%
- github.com/myrteametrics/myrtea-engine-api/v5/internals/variablesconfig        |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/plugins                          |    57.9%
- github.com/myrteametrics/myrtea-engine-api/v5/plugins/baseline                 |     0.0%
+ github.com/myrteametrics/myrtea-engine-api/v5/plugins/baseline/proto           |     5.4%
+ github.com/myrteametrics/myrtea-engine-api/v5/plugins/pluginutils              |     4.3%
+ github.com/myrteametrics/myrtea-engine-api/v5/plugins/standalone               |     8.9%

This commit introduces a new `ElasticDocPurge` job type, enabling the purging of Elastic documents based on specific conditions. The corresponding logic for job validation, execution, and fact deletion has been implemented, including support for contextualized query construction and handling shard failures. Dependencies were updated to include the necessary SDK functionalities.
@Ismail731404 Ismail731404 marked this pull request as ready for review December 30, 2024 17:29
This commit introduces a new `ElasticDocPurge` job type, enabling the purging of Elastic documents based on specific conditions. The corresponding logic for job validation, execution, and fact deletion has been implemented, including support for contextualized query construction and handling shard failures. Dependencies were updated to include the necessary SDK functionalities.
internals/scheduler/elastic_doc_purge_job.go Show resolved Hide resolved
internals/scheduler/elastic_doc_purge_job.go Outdated Show resolved Hide resolved
internals/scheduler/elastic_doc_purge_job.go Outdated Show resolved Hide resolved
internals/scheduler/elastic_doc_purge_job.go Outdated Show resolved Hide resolved
internals/scheduler/elastic_doc_purge_job.go Outdated Show resolved Hide resolved
@WatoLua WatoLua merged commit f4cf050 into master Jan 7, 2025
1 check passed
@WatoLua WatoLua deleted the feature/add-elastic-documents-purge-job branch January 7, 2025 12:34
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.

3 participants