Skip to content

feat: rename deployment and update configuration for import-plenary-m…#681

Merged
ManAnRuck merged 1 commit intomasterfrom
fix/680-plenetary-minutes
Sep 9, 2025
Merged

feat: rename deployment and update configuration for import-plenary-m…#681
ManAnRuck merged 1 commit intomasterfrom
fix/680-plenetary-minutes

Conversation

@ManAnRuck
Copy link
Member

@ManAnRuck ManAnRuck commented Sep 9, 2025

This pull request restructures the deployment configuration for the plenary minutes import job and improves the import script for better maintainability and clarity. The most important changes are grouped below:

Deployment Configuration Refactor:

  • Split the garden.yml deployment into two separate resources: a ConfigMap deploy (import-plenary-minutes-config) and an ad-hoc import job (import-plenary-minutes), improving separation of concerns and maintainability.
  • Updated the import job to use environment variables from a ConfigMap and set the container imagePullPolicy to IfNotPresent, ensuring correct configuration and more efficient image usage.

Import Script Improvements:

  • Enhanced logging by adding a message indicating which period is being imported, making the import process more transparent.
  • Refactored the import logic to iterate over all periods in the periods array instead of calling start for each period explicitly, making the code more scalable and easier to maintain.
    fixes helper texts (admin) are missing #680

…inutes

Refactor the deployment name to 'import-plenary-minutes-config' and
adjust the manifest templates. This change improves clarity and
maintains consistency in the configuration structure.
@ManAnRuck ManAnRuck requested a review from Copilot September 9, 2025 17:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the plenary minutes import job by splitting the deployment configuration into separate resources and improving the import script's scalability. The changes enhance maintainability by separating configuration concerns and making the import process more flexible.

  • Splits deployment into separate ConfigMap and ad-hoc job resources for better separation of concerns
  • Updates import script to iterate over all periods dynamically instead of hardcoded calls
  • Adds logging to track which period is being imported for better transparency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
services/cron-jobs/import-plenary-minutes/src/index.ts Adds period logging and refactors to iterate over all periods dynamically
services/cron-jobs/import-plenary-minutes/garden.yml Splits deployment into ConfigMap and Run resources, updates container configuration

@ManAnRuck ManAnRuck merged commit 0b07fe4 into master Sep 9, 2025
7 checks passed
@ManAnRuck ManAnRuck deleted the fix/680-plenetary-minutes branch September 9, 2025 18:09
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.

helper texts (admin) are missing

2 participants