Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ The changes must be captured in our [User Guide](https://guide.ds-wizard.org).

Releases are cut directly on `main` — there is no release branch to merge back.

* Update `CHANGELOG.md` files for the release. Their `[Unreleased]` link compares the previous release tag against
`main` (`/../../compare/vX.Y.Z...main`), so bump it to the tag being released.
* Before the first RC, run `python3 scripts/changelog.py <previous X.Y.Z> <X.Y.Z>` and commit the result. It moves
`[Unreleased]` into a section for the version and bumps the compare link. Entries of fixes made between RCs go into
that section by hand. `scripts/check-release.py` refuses a release whose changelogs are not ready.
* Git-tag the commit you are releasing with `vX.Y.Z-rc.1`. There is no version bump to commit — the version is
derived from the tag.
* Test the RC version (it will not be published via PyPI unless GitHub pre-release is published).
Expand Down
15 changes: 14 additions & 1 deletion packages/dsw-command-queue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [5.1.0]

Released for version consistency with other Wizard tools.

## [5.0.0]

### Changed

- Clear `lambda_invoked` of a failed command that will be tried again, so the backend knows to invoke the worker again; a command out of attempts keeps it
- Requires a database with the `lambda_invoked` column of `persistent_command`

## [4.35.0]

Released for version consistency with other Wizard tools.

## [4.34.0]

Expand Down Expand Up @@ -418,7 +428,7 @@ Released for version consistency with other DSW tools.
- Initiated this library from *dsw-data-seeder*, *dsw-document-worker*, and *dsw-mailer*


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.14.0]: /../../tree/v3.14.0
[3.14.1]: /../../tree/v3.14.1
[3.15.0]: /../../tree/v3.15.0
Expand Down Expand Up @@ -511,3 +521,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
21 changes: 18 additions & 3 deletions packages/dsw-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,29 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [5.1.0]

Released for version consistency with other Wizard tools.

## [5.0.0]

### Added
- `SentryReporter.set_command` / `reset_command` tag events with the persistent command being processed the way the backend does: `function`, `tenantUuid` and `traceUuid` tags, the creator as the user, the command UUID as the trace ID, and `uuid`, `attempts` and `maxAttempts` extras

- `read_config` loads the configuration YAML from AWS AppConfig when `AWS_APP_CONFIG` is set (environment `Default`, profile derived from the file name, overridable by `AWS_APP_CONFIG_ENVIRONMENT` / `AWS_APP_CONFIG_PROFILE`), and from the local file otherwise; a warm Lambda reuses its session and re-polls only after the poll interval
- `SentryReporter.set_command` / `reset_command` tag events with the persistent command being processed the way the backend does: `function`, `tenantUuid` and `traceUuid` tags, the creator as the user, the command UUID as the trace ID, and `uuid`, `attempts` and `maxAttempts` extras

### Changed

- `sentry.environment` (`SENTRY_ENVIRONMENT`) defaults to `development` instead of `production`, as in the backend, so a deployment that does not set it no longer reports as production
- `SentryReporter.initialize` takes `component` (the `component` tag) instead of `prog_name`
- Multi-tenant mode is read from `multiTenancy.enabled` (`MULTI_TENANCY_ENABLED`), the backend's new name for the section; `cloud.enabled` (`CLOUD_ENABLED`) is still read when `multiTenancy.enabled` is not set

## [4.35.0]

### Added

- `read_config` loads the configuration YAML from AWS AppConfig when `AWS_APP_CONFIG` is set (environment `Default`, profile derived from the file name, overridable by `AWS_APP_CONFIG_ENVIRONMENT` / `AWS_APP_CONFIG_PROFILE`), and from the local file otherwise; a warm Lambda reuses its session and re-polls only after the poll interval

## [4.34.0]

### Added
Expand Down Expand Up @@ -425,7 +437,7 @@ Released for version consistency with other DSW tools.
- Initiated this library from *dsw-data-seeder*, *dsw-document-worker*, and *dsw-mailer*


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.14.0]: /../../tree/v3.14.0
[3.14.1]: /../../tree/v3.14.1
[3.15.0]: /../../tree/v3.15.0
Expand Down Expand Up @@ -518,3 +530,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
18 changes: 15 additions & 3 deletions packages/dsw-data-seeder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)
## [5.1.0]

Released for version consistency with other Wizard tools.

## [5.0.0]

### Changed

- Sentry events carry the same tags as the backend's: `component` is the persistent command component (`data_seeder`), and a command sets `function`, `tenantUuid`, `traceUuid` (the command UUID, the `traceId` of the logs), the user who created it, and its trace; the tenant is the one being seeded, `recipe_name` is `recipeName` and `command_uuid` / `tenant_uuid` are gone

## [4.35.0]

### Added

- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)

## [4.34.0]

### Fixed
Expand Down Expand Up @@ -475,7 +484,7 @@ Released for version consistency with other DSW tools.
- Initiated DSW Data Seeder project


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.10.0]: https://github.com/ds-wizard/data-seeder/tree/v3.10.0
[3.11.0]: https://github.com/ds-wizard/data-seeder/tree/v3.11.0
[3.12.0]: https://github.com/ds-wizard/data-seeder/tree/v3.12.0
Expand Down Expand Up @@ -574,3 +583,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
35 changes: 26 additions & 9 deletions packages/dsw-database/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [5.1.0]

Released for version consistency with other Wizard tools.

## [5.0.0]

### Added

- `language` and `pot_file_ready` fields of `document_template` and a method to update the POT file flag
- `DBMailTemplateLocale` (`mail_template_locale`) with `get_mail_template_locale` and
`get_enabled_mail_template_locales` (Wizard 5.0 mail translations)

### Changed

- Read the `project` table column `knowledge_model_package_uuid` (renamed in the backend)
- Wizard 5.0 schema: `document` drops `project_replies_hash` and gains `context_hash`,
`knowledge_model_editor_uuid` and `workspace_uuid`; `document_template` has the single `id`
(instead of `organization_id` + `template_id`, `coordinates` is `<id>:<version>`), the
Expand All @@ -26,12 +31,6 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
`enabled`, `default_locale`, `official`, timestamps); `organization_id`, `locale_id`,
`version` and the `id` property are gone

### Removed

- `fetch_tenant_limits` and `DBTenantLimits`: the document worker takes the storage limit from the command body instead of `tenant_limit_bundle`
- `get_default_locale`: mails no longer fall back to the default UI locale, but to the default
mail template locale

### Fixed

- Every query attempt runs in its own savepoint: a failed query no longer leaves the transaction
Expand All @@ -50,6 +49,21 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
`submission` table: `to_dict` (`extras.submissions`) failed on a submission without
`created_at`, and missing references became the string `'None'`

### Removed

- `fetch_tenant_limits` and `DBTenantLimits`: the document worker takes the storage limit from the command body instead of `tenant_limit_bundle`
- `get_default_locale`: mails no longer fall back to the default UI locale, but to the default
mail template locale

## [4.35.0]

### Added

- `language` and `pot_file_ready` fields of `document_template` and a method to update the POT file flag

### Changed

- Read the `project` table column `knowledge_model_package_uuid` (renamed in the backend)

## [4.34.0]

Expand Down Expand Up @@ -471,7 +485,7 @@ Released for version consistency with other DSW tools.
- Initiated this library from *dsw-data-seeder*, *dsw-document-worker*, and *dsw-mailer*


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.14.0]: /../../tree/v3.14.0
[3.14.1]: /../../tree/v3.14.1
[3.15.0]: /../../tree/v3.15.0
Expand Down Expand Up @@ -565,3 +579,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
38 changes: 27 additions & 11 deletions packages/dsw-document-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Document template locales: a `.po` file attached to a document template version is applied at render time, so language is a parameter of document generation instead of a property of the format
- Generation of the POT file with translatable strings (new `generatePotFile` command function), stored in S3 and flagged by `document_template.pot_file_ready`
- `document.language` and `document.locale` in the document context
- Translations are available to all steps via `Step.before_render` and the `gettext` / `ngettext` / `pgettext` helpers (see [Translations](../dsw-templating/support/Translations.md))
- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)
- `docx-landscape.lua` Pandoc filter (a `landscape` div, or `\landscape` / `\portrait` paragraphs, switch DOCX page orientation)
## [5.1.0]

### Fixed

- A Pandoc conversion that exceeds `externals.pandoc.timeout` (`PANDOC_TIMEOUT`) is stopped together with the filters it started, and the document fails with "Exceeded the time limit of N seconds"; before, the worker waited for Pandoc to finish and the timeout had no effect. The error message keeps only the last 64 KiB of Pandoc's stderr

## [5.0.0]

### Changed
- Sentry events carry the same tags as the backend's: `component` is the persistent command component (`document_worker`), and a command sets `function`, `tenantUuid`, `traceUuid` (the command UUID, the `traceId` of the logs), the user who created it, and its trace; the job tags are camelCase (`documentUuid`, `templateUuid`, `formatUuid`) and `command_uuid` / `tenant_uuid` are gone

- Sentry events carry the same tags as the backend's: `component` is the persistent command component (`document_worker`), and a command sets `function`, `tenantUuid`, `traceUuid` (the command UUID, the `traceId` of the logs), the user who created it, and its trace; the job tags are camelCase (`documentUuid`, `templateUuid`, `formatUuid`) and `command_uuid` / `tenant_uuid` are gone
- Persistent command component (and its notification channel) renamed `doc_worker` → `document_worker`, to match the backend; commands still stored as `doc_worker` are no longer picked up
- Update to DT metamodel 19.0 (WEP 24): only document contexts of major version 19 are accepted; any other (e.g. of a document queued before the upgrade) fails the document with "Unsupported document context metamodel version X, expected 19.x. Regenerate the document." (`missing` when there is none) and is not reported to Sentry
- `extras.questionnaire`, the deprecated alias of `extras.project`, is removed; for a KM editor preview (no project) `extras.project` is `null` and `extras.submissions` empty
Expand All @@ -27,6 +27,21 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- The tenant storage limit comes only from `limits.storage` of the `generateDocument` command body, as resolved by the backend; the key is removed before rendering, so it is not part of the document context, and without it (or with `null`) there is no storage limit. The worker no longer reads `tenant_limit_bundle`
- The maximum size of a generated document is no longer experimental and is limited by default: `documents.maxSize` (`DOCUMENTS_MAX_SIZE`) replaces `experimental.maxDocumentSize` (`EXPERIMENTAL_MAX_DOCUMENT_SIZE`) and defaults to 5 MB (`5000000` bytes); set it to `null` (or a blank variable) for no limit
- `generatePotFile` reads the single template `id` and `version` from the command body (Wizard 5.0) and stores `document-templates/<uuid>/<id>_<version>.pot`, the name the backend reads; a body queued before 5.0 (`organizationId` + `templateId`) is read as the joined id the 5.0 migration gave the template

## [4.35.0]

### Added

- Document template locales: a `.po` file attached to a document template version is applied at render time, so language is a parameter of document generation instead of a property of the format
- Generation of the POT file with translatable strings (new `generatePotFile` command function), stored in S3 and flagged by `document_template.pot_file_ready`
- `document.language` and `document.locale` in the document context
- Translations are available to all steps via `Step.before_render` and the `gettext` / `ngettext` / `pgettext` helpers (see [Translations](../dsw-templating/support/Translations.md))
- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)
- `docx-landscape.lua` Pandoc filter (a `landscape` div, or `\landscape` / `\portrait` paragraphs, switch DOCX page orientation)

### Changed

- Update to DT metamodel 18.3
- The `jinja2.ext.i18n` extension is always enabled for Jinja-powered steps
- `extras.project` (and the deprecated `extras.questionnaire`) provide `knowledge_model_package_uuid` instead of `knowledge_package_uuid`
- The template-facing document context object model (`ctx|to_context_obj`) comes from `dsw-models` (`dsw.models.document_context.graph`) instead of a copy inside the worker; the object model, its attributes and its Markdown rendering are unchanged
Expand All @@ -38,14 +53,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Documents no longer fail when a report metric has no measure (`measure` is `null` when nothing answered contributes to the metric); `ReportMetric.measure` is `None` then
- The `policy.urlize.extra_schemes` step option is applied to the `urlize.extra_schemes` Jinja policy instead of overwriting `truncate.leeway`
- A Pandoc conversion that exceeds `externals.pandoc.timeout` (`PANDOC_TIMEOUT`) is stopped together with the filters it started, and the document fails with "Exceeded the time limit of N seconds"; before, the worker waited for Pandoc to finish and the timeout had no effect. The error message keeps only the last 64 KiB of Pandoc's stderr

### Removed

- The `policy.ext.i18n.trimmed` step option; `{% trans %}` blocks are now always trimmed, since the trimming decides the `msgid` and the POT file is per document template while the option was per format. Use `{% trans notrimmed %}` where the whitespace matters.
- The experimental `i18n-dir`, `i18n-domain` and `i18n-lang` step options; they are now ignored and a template still using them renders untranslated. Use document template locales instead.


## [4.34.0]

### Added
Expand Down Expand Up @@ -618,7 +631,7 @@ Released for version consistency with other DSW tools.
- Moved from [ds-wizard/document-worker](https://github.com/ds-wizard/document-worker) to the monorepo


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.14.0]: /../../tree/v3.14.0
[3.14.1]: /../../tree/v3.14.1
[3.15.0]: /../../tree/v3.15.0
Expand Down Expand Up @@ -711,3 +724,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
21 changes: 18 additions & 3 deletions packages/dsw-mailer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [5.1.0]

Released for version consistency with other Wizard tools.

## [5.0.0]

### Added

- The registry's `resetPassword` template, with a link to `/forgotten-password/<user>/<hash>`
- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)
- Tests
- The default mail POT (Wizard 5.0): `dsw-mailer make-pot` builds one `mail.pot` of all the templates into `templates/locale/mail.pot` (the image has it), and the mailer keeps it current in S3 at `mail-templates/mail.pot`, with its version as object metadata, at startup and with `dsw-mailer sync-default-pot [--force]` or the Lambda event `{"syncDefaultPot": {...}}`; it never downgrades it unless forced and never blocks mail; `mail.syncDefaultPot` (`MAIL_SYNC_DEFAULT_POT`) turns it off

### Changed
- Sentry events carry the same tags as the backend's: `component` is the persistent command component (`mailer`), and a command sets `function`, `tenantUuid`, `traceUuid` (the command UUID, the `traceId` of the logs), the user who created it, and its trace; `command_uuid` / `tenant_uuid` are gone

- Sentry events carry the same tags as the backend's: `component` is the persistent command component (`mailer`), and a command sets `function`, `tenantUuid`, `traceUuid` (the command UUID, the `traceId` of the logs), the user who created it, and its trace; `command_uuid` / `tenant_uuid` are gone
- Mails are translated with the tenant's mail template locales (Wizard 5.0): one mail is sent per recipient, in the mail template locale whose code matches the recipient's UI locale (exact code, then the base language), otherwise the tenant's default one, otherwise `en`, otherwise built-in English; disabled locales are skipped and a recipient who is not a user gets the default
- A command with `sendAsOne` sends a single mail to all its recipients in English; a command without the field, queued before the upgrade, is sent per recipient
- The compiled `mail.mo` of a mail template locale is stored back to S3 next to its `mail.po` and cached locally until the locale's `updated_at` changes, instead of compiling the PO for every mail
Expand All @@ -33,6 +39,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- The three POT files (`default`, `wizard` and `registry`, built with `pybabel` and `make-header.sh`): `make pot` builds the one `mail.pot`
- The illustrations color (`style.illustrations_color` in templates, `illustrationsColor` and `styleIllustrationsColor` in the input, the `DEFAULT_ILLUSTRATIONS_COLOR` variable): Wizard 5.0 removed it

## [4.35.0]

### Added

- Lambda handler reads its configuration from AWS AppConfig when `AWS_APP_CONFIG` is set (see `dsw-config`)

## [4.34.0]

### Fixed
Expand Down Expand Up @@ -497,7 +509,7 @@ Released for version consistency with other DSW tools.
- Moved from [ds-wizard/mailer](https://github.com/ds-wizard/mailer) to the monorepo


[Unreleased]: /../../compare/v4.34.0...main
[Unreleased]: /../../compare/v5.1.0...main
[3.14.0]: /../../tree/v3.14.0
[3.14.1]: /../../tree/v3.14.1
[3.15.0]: /../../tree/v3.15.0
Expand Down Expand Up @@ -590,3 +602,6 @@ Released for version consistency with other DSW tools.
[4.32.0]: /../../tree/v4.32.0
[4.33.0]: /../../tree/v4.33.0
[4.34.0]: /../../tree/v4.34.0
[4.35.0]: /../../tree/v4.35.0
[5.0.0]: /../../tree/v5.0.0
[5.1.0]: /../../tree/v5.1.0
Loading
Loading