datex-studio-cli 0.4.7__tar.gz → 0.4.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/PKG-INFO +1 -1
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/pyproject.toml +1 -1
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/__init__.py +1 -1
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/configuration.py +67 -2
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/source.py +186 -109
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/__init__.py +2 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/app_config.py +90 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/endpoints.py +11 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/release_notes.py +196 -1
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/.gitignore +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/README.md +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/report-creator.skill +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/scripts/analyze_corpus.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/scripts/generate_rdlx_schema.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/__main__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/cli.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/api.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/auth.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/branch.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/config.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/crm.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/datasource.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/devops.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/document.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/endpoint.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/env.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/explore.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/function.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/marketplace.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/odata.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/organization.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/proxy.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/release_notes.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/repo.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/add_cmds.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/api.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/batch.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/create.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/data.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/dataset.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/edit.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/folder.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/preview.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/report/schema_cmds.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/schema.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/servicepack.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/studio.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/telemetry.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/commands/user.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/context.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/client.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/metadata_models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/api/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/auth/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/auth/decorators.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/auth/msal_client.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/auth/token_cache.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/cache.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/flow_generator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/flow_models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/generator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/parsers.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/resolver.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/type_def_parser.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/datasource/validator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/designer/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/designer/flow_models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/designer/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/designer/parsers.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/devops/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/devops/client.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/devops/helpers.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/devops/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/dynamics/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/dynamics/client.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/dynamics/metadata_cache.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/footprint/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/footprint/client.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/footprint/edmx_parser.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/footprint/metadata.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/function/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/function/generator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/function/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/function/validator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/graph.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/csv_fmt.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/formatter.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/json_fmt.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/redaction.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/output/yaml_fmt.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/responses.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/config.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/identity.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/recorder.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/scrubber.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/core/telemetry/sender.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/models/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/datasource_binding.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/engine.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/field_parser.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/folder.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/manifest.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/models.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/preview.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/preview_arjs.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/schema.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/svg_renderer.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/templates/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/templates/bill_of_lading.rdlx-json +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/templates/shipping_label.rdlx-json +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/validate_arjs.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/validator.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/report/wrapper.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/click_options.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/config.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/errors.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/filtering.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/image.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/paths.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/resolvers.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/responses.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/restricted.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/sorting.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/utils/update_check.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/__init__.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/app.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/design.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/proxy_app.py +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/404/index.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/404.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/UgyAMtPjH-Pt0RYWOHzIT/_buildManifest.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/UgyAMtPjH-Pt0RYWOHzIT/_ssgManifest.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/0b24cca5-c1e1c8810348f107.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/255-102f2e5b2e3dc2ef.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/4bd1b696-c023c6e3521b1417.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/538-84e2e111415f1fda.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/697-0e000ab410d9f470.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/871-1acacdb7b4022abf.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/8b8f67fc-6295949a4b5485a4.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/909-c88abba3cf0caec3.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/app/_not-found/page-ea1be7001c230704.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/app/design/capture/page-a5e129c2d223432c.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/app/design/page-21ba66a3dd3b03f0.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/app/layout-2cc6eac09e476c91.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/app/page-20c358395882cdac.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/framework-de98b93a850cfc71.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/main-0f18f91200dac003.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/main-app-b69998d8941231d8.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/pages/_app-7d307437aca18ad4.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/pages/_error-cb2a52f75f2162e2.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/chunks/webpack-2b297ada5306c17f.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/_next/static/css/360c657de5e04df8.css +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/design/capture/index.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/design/capture/index.txt +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/design/index.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/design/index.txt +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/index.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/index.txt +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/render-cli.js +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/report-preview.html +0 -0
- {datex_studio_cli-0.4.7 → datex_studio_cli-0.4.9}/src/dxs/web/static/report-validate.html +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datex-studio-cli
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.9
|
|
4
4
|
Summary: CLI for Datex Studio low-code platform, designed for LLM-based AI agents
|
|
5
5
|
Project-URL: Homepage, https://github.com/datex/datex-studio-cli
|
|
6
6
|
Project-URL: Documentation, https://github.com/datex/datex-studio-cli
|
|
@@ -397,8 +397,7 @@ def configuration_validate(
|
|
|
397
397
|
)
|
|
398
398
|
else:
|
|
399
399
|
formatted = [
|
|
400
|
-
{"message": e.get("message", str(e)) if isinstance(e, dict) else str(e)}
|
|
401
|
-
for e in errors
|
|
400
|
+
{"message": e.get("message", str(e)) if isinstance(e, dict) else str(e)} for e in errors
|
|
402
401
|
]
|
|
403
402
|
ctx.output(list_response(items=formatted, semantic_key="validation_errors"))
|
|
404
403
|
|
|
@@ -443,6 +442,72 @@ def configuration_contexts(
|
|
|
443
442
|
ctx.output(single(item=response or {}, semantic_key="configuration_contexts"))
|
|
444
443
|
|
|
445
444
|
|
|
445
|
+
@configuration.command("nomenclature")
|
|
446
|
+
@click.option("--branch", "-b", type=int, default=None, help="Branch ID (falls back to global -b)")
|
|
447
|
+
@click.option(
|
|
448
|
+
"--package",
|
|
449
|
+
"-p",
|
|
450
|
+
"package",
|
|
451
|
+
default=None,
|
|
452
|
+
help="Filter to one package (matches the <Package> segment of the type key).",
|
|
453
|
+
)
|
|
454
|
+
@click.option(
|
|
455
|
+
"--kind",
|
|
456
|
+
type=click.Choice(["all", "enum", "interface"]),
|
|
457
|
+
default="all",
|
|
458
|
+
show_default=True,
|
|
459
|
+
help="Filter by kind: enums (have members) or interfaces (no members).",
|
|
460
|
+
)
|
|
461
|
+
@click.option(
|
|
462
|
+
"--search",
|
|
463
|
+
"search",
|
|
464
|
+
default=None,
|
|
465
|
+
help="Case-insensitive substring match on the fully-qualified type key.",
|
|
466
|
+
)
|
|
467
|
+
@pass_context
|
|
468
|
+
@require_auth
|
|
469
|
+
def configuration_nomenclature(
|
|
470
|
+
ctx: DxsContext,
|
|
471
|
+
branch: int | None,
|
|
472
|
+
package: str | None,
|
|
473
|
+
kind: str,
|
|
474
|
+
search: str | None,
|
|
475
|
+
) -> None:
|
|
476
|
+
"""List custom types (interfaces/enums) and enum members on a branch.
|
|
477
|
+
|
|
478
|
+
Returns the platform's nomenclature registry: a flat catalog of every
|
|
479
|
+
`<Package>.<Type>` custom type, with each enum's members in
|
|
480
|
+
`constantValues` (empty for interfaces). Use it to confirm a type or enum
|
|
481
|
+
member exists before referencing `$types.<Package>.<Type>` in flow /
|
|
482
|
+
expression code — lighter than fetching full bodies (`get customtype`) or
|
|
483
|
+
the designer contexts (`contexts`).
|
|
484
|
+
|
|
485
|
+
\b
|
|
486
|
+
Examples:
|
|
487
|
+
dxs configuration nomenclature -b 64
|
|
488
|
+
dxs configuration nomenclature -b 64 --package Cartonization --kind enum
|
|
489
|
+
dxs configuration nomenclature -b 64 --search e_stage
|
|
490
|
+
"""
|
|
491
|
+
branch_id = resolve_branch(ctx, branch, "DXS-CFG-010")
|
|
492
|
+
|
|
493
|
+
api_client = ApiClient()
|
|
494
|
+
path = ConfigurationEndpoints.custom_type_nomenclature(branch_id)
|
|
495
|
+
items: list[Any] = api_client.get(path) or []
|
|
496
|
+
|
|
497
|
+
if package:
|
|
498
|
+
prefix = f"{package.lower()}."
|
|
499
|
+
items = [i for i in items if str(i.get("key", "")).lower().startswith(prefix)]
|
|
500
|
+
if kind == "enum":
|
|
501
|
+
items = [i for i in items if i.get("constantValues")]
|
|
502
|
+
elif kind == "interface":
|
|
503
|
+
items = [i for i in items if not i.get("constantValues")]
|
|
504
|
+
if search:
|
|
505
|
+
needle = search.lower()
|
|
506
|
+
items = [i for i in items if needle in str(i.get("key", "")).lower()]
|
|
507
|
+
|
|
508
|
+
ctx.output(list_response(items=items, semantic_key="custom_types", branch_id=branch_id))
|
|
509
|
+
|
|
510
|
+
|
|
446
511
|
@configuration.command("list")
|
|
447
512
|
@click.argument("config_type")
|
|
448
513
|
@click.option("--branch", "-b", type=int, default=None, help="Branch ID (falls back to global -b)")
|
|
@@ -22,6 +22,7 @@ from dxs.core.api import (
|
|
|
22
22
|
RepoEndpoints,
|
|
23
23
|
SourceControlEndpoints,
|
|
24
24
|
WorkitemEndpoints,
|
|
25
|
+
diff_references,
|
|
25
26
|
fetch_references,
|
|
26
27
|
fetch_settings,
|
|
27
28
|
)
|
|
@@ -29,10 +30,13 @@ from dxs.core.auth import require_auth
|
|
|
29
30
|
from dxs.core.output.yaml_fmt import LiteralString
|
|
30
31
|
from dxs.core.release_notes import (
|
|
31
32
|
aggregate_contributors,
|
|
33
|
+
build_repo_index,
|
|
32
34
|
classify_dependencies,
|
|
33
35
|
collect_workitems_batch,
|
|
34
36
|
enrich_workitems_with_devops_data,
|
|
35
37
|
is_sync_commit,
|
|
38
|
+
resolve_changed_dependencies,
|
|
39
|
+
resolve_root_org_ids,
|
|
36
40
|
)
|
|
37
41
|
from dxs.utils.errors import ValidationError
|
|
38
42
|
from dxs.utils.responses import list_response, single
|
|
@@ -2770,106 +2774,186 @@ def deps_diff(ctx: DxsContext, from_branch: int, to_branch: int) -> None:
|
|
|
2770
2774
|
"""
|
|
2771
2775
|
client = ApiClient()
|
|
2772
2776
|
|
|
2773
|
-
# Fetch dependencies for both branches in parallel conceptually
|
|
2774
2777
|
ctx.log(f"Fetching dependencies for branch {from_branch}...")
|
|
2775
2778
|
from_deps = fetch_references(client, from_branch, direct_only=True)
|
|
2776
2779
|
|
|
2777
2780
|
ctx.log(f"Fetching dependencies for branch {to_branch}...")
|
|
2778
2781
|
to_deps = fetch_references(client, to_branch, direct_only=True)
|
|
2779
2782
|
|
|
2780
|
-
#
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
to_deps = [to_deps] if to_deps else []
|
|
2785
|
-
|
|
2786
|
-
# Build lookup maps by referenceName
|
|
2787
|
-
from_by_ref = {d.get("referenceName"): d for d in from_deps}
|
|
2788
|
-
to_by_ref = {d.get("referenceName"): d for d in to_deps}
|
|
2789
|
-
|
|
2790
|
-
# Compute differences
|
|
2791
|
-
added = []
|
|
2792
|
-
removed = []
|
|
2793
|
-
updated = []
|
|
2794
|
-
unchanged_count = 0
|
|
2795
|
-
|
|
2796
|
-
# Find added and updated
|
|
2797
|
-
for ref_name, to_dep in to_by_ref.items():
|
|
2798
|
-
if ref_name not in from_by_ref:
|
|
2799
|
-
# New dependency
|
|
2800
|
-
added.append(
|
|
2801
|
-
{
|
|
2802
|
-
"referenceName": ref_name,
|
|
2803
|
-
"name": to_dep.get("name"),
|
|
2804
|
-
"description": to_dep.get("description"),
|
|
2805
|
-
"versionName": to_dep.get("versionName"),
|
|
2806
|
-
"versionId": to_dep.get("marketPlaceApplicationVersionId"),
|
|
2807
|
-
"applicationId": to_dep.get("applicationId"),
|
|
2808
|
-
"commitTitle": to_dep.get("commitTitle"),
|
|
2809
|
-
"isDirect": to_dep.get("isDirect"),
|
|
2810
|
-
}
|
|
2811
|
-
)
|
|
2812
|
-
else:
|
|
2813
|
-
from_dep = from_by_ref[ref_name]
|
|
2814
|
-
from_version_id = from_dep.get("marketPlaceApplicationVersionId")
|
|
2815
|
-
to_version_id = to_dep.get("marketPlaceApplicationVersionId")
|
|
2783
|
+
# Diff by resolved `version` keyed on uniqueIdentifier. (The legacy
|
|
2784
|
+
# marketPlaceApplicationVersionId field no longer exists in the AppConfig
|
|
2785
|
+
# payload, so the previous comparison reported everything as unchanged.)
|
|
2786
|
+
diff = diff_references(from_deps, to_deps)
|
|
2816
2787
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
"fromApplicationId": from_dep.get("applicationId"),
|
|
2826
|
-
"toApplicationId": to_dep.get("applicationId"),
|
|
2827
|
-
"fromVersionName": from_dep.get("versionName"),
|
|
2828
|
-
"toVersionName": to_dep.get("versionName"),
|
|
2829
|
-
"fromCommitTitle": from_dep.get("commitTitle"),
|
|
2830
|
-
"toCommitTitle": to_dep.get("commitTitle"),
|
|
2831
|
-
"isDirect": to_dep.get("isDirect"),
|
|
2832
|
-
}
|
|
2833
|
-
)
|
|
2834
|
-
else:
|
|
2835
|
-
unchanged_count += 1
|
|
2788
|
+
ctx.output(
|
|
2789
|
+
single(
|
|
2790
|
+
item=diff,
|
|
2791
|
+
semantic_key="dependency_changes",
|
|
2792
|
+
from_branch_id=from_branch,
|
|
2793
|
+
to_branch_id=to_branch,
|
|
2794
|
+
)
|
|
2795
|
+
)
|
|
2836
2796
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2797
|
+
|
|
2798
|
+
@source.command("release-tree")
|
|
2799
|
+
@click.option(
|
|
2800
|
+
"--from",
|
|
2801
|
+
"from_branch",
|
|
2802
|
+
type=int,
|
|
2803
|
+
required=True,
|
|
2804
|
+
help="Source branch ID (earlier release of the root application)",
|
|
2805
|
+
)
|
|
2806
|
+
@click.option(
|
|
2807
|
+
"--to",
|
|
2808
|
+
"to_branch",
|
|
2809
|
+
type=int,
|
|
2810
|
+
required=True,
|
|
2811
|
+
help="Target branch ID (later release of the root application)",
|
|
2812
|
+
)
|
|
2813
|
+
@click.option(
|
|
2814
|
+
"--recursive",
|
|
2815
|
+
is_flag=True,
|
|
2816
|
+
default=False,
|
|
2817
|
+
help="Also walk changed dependencies of changed dependencies (transitive)",
|
|
2818
|
+
)
|
|
2819
|
+
@click.option(
|
|
2820
|
+
"--max-depth",
|
|
2821
|
+
type=int,
|
|
2822
|
+
default=10,
|
|
2823
|
+
help="Maximum recursion depth when --recursive is set (default: 10)",
|
|
2824
|
+
)
|
|
2825
|
+
@pass_context
|
|
2826
|
+
@require_auth
|
|
2827
|
+
def release_tree(
|
|
2828
|
+
ctx: DxsContext,
|
|
2829
|
+
from_branch: int,
|
|
2830
|
+
to_branch: int,
|
|
2831
|
+
recursive: bool,
|
|
2832
|
+
max_depth: int,
|
|
2833
|
+
) -> None:
|
|
2834
|
+
"""Build the complete changed-dependency worklist between two releases.
|
|
2835
|
+
|
|
2836
|
+
Diffs the root application's dependencies by resolved ``version``, then
|
|
2837
|
+
resolves every changed dependency to its from/to branch IDs (the IDs needed
|
|
2838
|
+
to ``compare`` or drill each package). This is the enumeration step for
|
|
2839
|
+
release notes: one call yields the full list of (package, from_branch,
|
|
2840
|
+
to_branch) tuples to analyze.
|
|
2841
|
+
|
|
2842
|
+
Unlike ``deps-diff`` (which lists version deltas only), this resolves branch
|
|
2843
|
+
IDs. With ``--recursive`` it walks changed dependencies of changed
|
|
2844
|
+
dependencies; for a flat aggregator app (e.g. FootprintManager, which
|
|
2845
|
+
declares every package directly) a single pass is already complete.
|
|
2846
|
+
|
|
2847
|
+
\b
|
|
2848
|
+
Options:
|
|
2849
|
+
--from ID Earlier release branch ID of the root app
|
|
2850
|
+
--to ID Later release branch ID of the root app
|
|
2851
|
+
--recursive Walk transitive changed dependencies
|
|
2852
|
+
--max-depth N Recursion cap with --recursive (default: 10)
|
|
2853
|
+
|
|
2854
|
+
\b
|
|
2855
|
+
Examples:
|
|
2856
|
+
dxs source release-tree --from 73496 --to 82962
|
|
2857
|
+
dxs source release-tree --from 73496 --to 82962 --recursive
|
|
2858
|
+
"""
|
|
2859
|
+
if from_branch == to_branch:
|
|
2860
|
+
raise ValidationError(
|
|
2861
|
+
message="Cannot compare a branch to itself",
|
|
2862
|
+
code="DXS-VAL-002",
|
|
2863
|
+
suggestions=["Provide different --from and --to branch IDs"],
|
|
2864
|
+
)
|
|
2865
|
+
|
|
2866
|
+
client = ApiClient()
|
|
2867
|
+
|
|
2868
|
+
# Root metadata (reference name + version names for the worklist header).
|
|
2869
|
+
from_data = client.get(BranchEndpoints.get(from_branch))
|
|
2870
|
+
to_data = client.get(BranchEndpoints.get(to_branch))
|
|
2871
|
+
|
|
2872
|
+
# The root may be a customer application (e.g. tob-footprint) that references
|
|
2873
|
+
# packages from its own org alongside the shared Datex catalog. Index that
|
|
2874
|
+
# org too, or those packages (e.g. tob-reports) silently fail to resolve.
|
|
2875
|
+
extra_org_ids = resolve_root_org_ids(client, to_data, from_data)
|
|
2876
|
+
root_name = to_data.get("referenceName") or to_data.get("name")
|
|
2877
|
+
|
|
2878
|
+
root = {
|
|
2879
|
+
"reference_name": root_name,
|
|
2880
|
+
"from_version": from_data.get("versionName"),
|
|
2881
|
+
"to_version": to_data.get("versionName"),
|
|
2882
|
+
"from_branch_id": from_branch,
|
|
2883
|
+
"to_branch_id": to_branch,
|
|
2884
|
+
"depth": 0,
|
|
2885
|
+
"is_root": True,
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
# Repo index is built once and reused across all levels.
|
|
2889
|
+
ctx.log("Building repository index...")
|
|
2890
|
+
repo_index = build_repo_index(client, extra_org_ids=extra_org_ids)
|
|
2891
|
+
|
|
2892
|
+
dependencies: list[dict[str, Any]] = []
|
|
2893
|
+
added: list[dict[str, Any]] = []
|
|
2894
|
+
removed: list[dict[str, Any]] = []
|
|
2895
|
+
# visited keyed by the work unit, so the same (package, from, to) is resolved once.
|
|
2896
|
+
visited: set[tuple[Any, Any, Any]] = set()
|
|
2897
|
+
|
|
2898
|
+
# BFS queue of (from_branch_id, to_branch_id, depth) to diff.
|
|
2899
|
+
queue: list[tuple[int, int, int]] = [(from_branch, to_branch, 1)]
|
|
2900
|
+
while queue:
|
|
2901
|
+
cur_from, cur_to, depth = queue.pop(0)
|
|
2902
|
+
ctx.log(f"Diffing dependencies at depth {depth} ({cur_from} -> {cur_to})...")
|
|
2903
|
+
try:
|
|
2904
|
+
from_refs = fetch_references(client, cur_from, direct_only=True)
|
|
2905
|
+
to_refs = fetch_references(client, cur_to, direct_only=True)
|
|
2906
|
+
except Exception:
|
|
2907
|
+
logger.debug("Failed to fetch references for %s/%s", cur_from, cur_to, exc_info=True)
|
|
2908
|
+
continue
|
|
2909
|
+
|
|
2910
|
+
diff = diff_references(from_refs, to_refs)
|
|
2911
|
+
if depth == 1:
|
|
2912
|
+
added = diff["added"]
|
|
2913
|
+
removed = diff["removed"]
|
|
2914
|
+
|
|
2915
|
+
resolved = resolve_changed_dependencies(client, diff["updated"], repo_index=repo_index)
|
|
2916
|
+
for entry in resolved:
|
|
2917
|
+
key = (
|
|
2918
|
+
entry.get("unique_identifier"),
|
|
2919
|
+
entry.get("from_version"),
|
|
2920
|
+
entry.get("to_version"),
|
|
2850
2921
|
)
|
|
2922
|
+
if key in visited:
|
|
2923
|
+
continue
|
|
2924
|
+
visited.add(key)
|
|
2925
|
+
entry["depth"] = depth
|
|
2926
|
+
dependencies.append(entry)
|
|
2927
|
+
|
|
2928
|
+
if (
|
|
2929
|
+
recursive
|
|
2930
|
+
and depth < max_depth
|
|
2931
|
+
and entry.get("from_branch_id")
|
|
2932
|
+
and entry.get("to_branch_id")
|
|
2933
|
+
):
|
|
2934
|
+
queue.append((entry["from_branch_id"], entry["to_branch_id"], depth + 1))
|
|
2851
2935
|
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
removed.sort(key=lambda x: str(x.get("referenceName") or ""))
|
|
2855
|
-
updated.sort(key=lambda x: str(x.get("referenceName") or ""))
|
|
2936
|
+
dependencies.sort(key=lambda d: (d.get("depth", 0), str(d.get("reference_name") or "")))
|
|
2937
|
+
resolved_ok = sum(1 for d in dependencies if not d.get("resolve_error"))
|
|
2856
2938
|
|
|
2857
2939
|
ctx.output(
|
|
2858
2940
|
single(
|
|
2859
2941
|
item={
|
|
2942
|
+
"root": root,
|
|
2860
2943
|
"summary": {
|
|
2944
|
+
"dependencies_total": len(dependencies),
|
|
2945
|
+
"resolved_ok": resolved_ok,
|
|
2946
|
+
"resolve_failed": len(dependencies) - resolved_ok,
|
|
2861
2947
|
"added_count": len(added),
|
|
2862
2948
|
"removed_count": len(removed),
|
|
2863
|
-
"
|
|
2864
|
-
"
|
|
2865
|
-
"from_total": len(from_deps),
|
|
2866
|
-
"to_total": len(to_deps),
|
|
2949
|
+
"max_depth_reached": max((d.get("depth", 0) for d in dependencies), default=0),
|
|
2950
|
+
"recursive": recursive,
|
|
2867
2951
|
},
|
|
2952
|
+
"dependencies": dependencies,
|
|
2868
2953
|
"added": added,
|
|
2869
2954
|
"removed": removed,
|
|
2870
|
-
"updated": updated,
|
|
2871
2955
|
},
|
|
2872
|
-
semantic_key="
|
|
2956
|
+
semantic_key="release_tree",
|
|
2873
2957
|
from_branch_id=from_branch,
|
|
2874
2958
|
to_branch_id=to_branch,
|
|
2875
2959
|
)
|
|
@@ -3661,54 +3745,47 @@ def compare(
|
|
|
3661
3745
|
filtered.append(entry)
|
|
3662
3746
|
committed_branches_list = filtered
|
|
3663
3747
|
|
|
3664
|
-
# Get dependency changes
|
|
3748
|
+
# Get dependency changes. Diff by resolved `version` keyed on uniqueIdentifier
|
|
3749
|
+
# (the legacy marketPlaceApplicationVersionId field is gone from the AppConfig
|
|
3750
|
+
# payload, which is why the old comparison always reported zero changes).
|
|
3665
3751
|
dep_changes: dict[str, list[Any]] = {"added": [], "removed": [], "updated": []}
|
|
3666
3752
|
ctx.log("Comparing dependencies...")
|
|
3667
3753
|
try:
|
|
3668
3754
|
from_deps = fetch_references(client, from_branch, direct_only=True)
|
|
3669
3755
|
to_deps = fetch_references(client, to_branch, direct_only=True)
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
# Find added, removed, and updated
|
|
3676
|
-
for ref, dep in to_by_ref.items():
|
|
3677
|
-
if ref not in from_by_ref:
|
|
3678
|
-
dep_changes["added"].append(dep)
|
|
3679
|
-
else:
|
|
3680
|
-
from_dep = from_by_ref[ref]
|
|
3681
|
-
from_dep_ver = from_dep.get("marketPlaceApplicationVersionId")
|
|
3682
|
-
to_dep_ver = dep.get("marketPlaceApplicationVersionId")
|
|
3683
|
-
if from_dep_ver != to_dep_ver:
|
|
3684
|
-
dep_changes["updated"].append(
|
|
3685
|
-
{
|
|
3686
|
-
"reference_name": ref,
|
|
3687
|
-
"from_branch_id": from_dep.get("applicationId"),
|
|
3688
|
-
"to_branch_id": dep.get("applicationId"),
|
|
3689
|
-
}
|
|
3690
|
-
)
|
|
3691
|
-
|
|
3692
|
-
for ref, dep in from_by_ref.items():
|
|
3693
|
-
if ref not in to_by_ref:
|
|
3694
|
-
dep_changes["removed"].append(dep)
|
|
3756
|
+
diff = diff_references(from_deps, to_deps)
|
|
3757
|
+
dep_changes["added"] = diff["added"]
|
|
3758
|
+
dep_changes["removed"] = diff["removed"]
|
|
3759
|
+
dep_changes["updated"] = diff["updated"]
|
|
3695
3760
|
except Exception:
|
|
3696
3761
|
logger.debug("Failed to fetch dependencies for comparison", exc_info=True)
|
|
3697
3762
|
|
|
3698
|
-
# Phase 4: Recursive dependency enrichment
|
|
3763
|
+
# Phase 4: Recursive dependency enrichment. The AppConfig payload carries no
|
|
3764
|
+
# branch IDs, so resolve each changed dep's from/to branch IDs before drilling.
|
|
3699
3765
|
sync_only_dep_count = 0
|
|
3700
3766
|
if recursive and dep_changes["updated"]:
|
|
3767
|
+
ctx.log("Resolving dependency branch IDs...")
|
|
3768
|
+
# Index the root app's own org too, so a customer app's packages resolve.
|
|
3769
|
+
extra_org_ids = resolve_root_org_ids(client, to_branch_data, from_branch_data)
|
|
3770
|
+
resolved = resolve_changed_dependencies(
|
|
3771
|
+
client, dep_changes["updated"], extra_org_ids=extra_org_ids
|
|
3772
|
+
)
|
|
3773
|
+
drillable = [d for d in resolved if d.get("from_branch_id") and d.get("to_branch_id")]
|
|
3774
|
+
unresolved = [
|
|
3775
|
+
d for d in resolved if not (d.get("from_branch_id") and d.get("to_branch_id"))
|
|
3776
|
+
]
|
|
3777
|
+
|
|
3701
3778
|
ctx.log("Recursively comparing updated dependencies...")
|
|
3702
|
-
meaningful_deps, sync_only_deps = classify_dependencies(client,
|
|
3779
|
+
meaningful_deps, sync_only_deps = classify_dependencies(client, drillable)
|
|
3703
3780
|
sync_only_dep_count = len(sync_only_deps)
|
|
3704
3781
|
|
|
3705
3782
|
if exclude_sync:
|
|
3706
3783
|
# When both flags are on, separate sync-only deps
|
|
3707
|
-
dep_changes["updated"] = meaningful_deps
|
|
3784
|
+
dep_changes["updated"] = meaningful_deps + unresolved
|
|
3708
3785
|
dep_changes["sync_only"] = sync_only_deps
|
|
3709
3786
|
else:
|
|
3710
3787
|
# Keep all but mark them
|
|
3711
|
-
dep_changes["updated"] = meaningful_deps + sync_only_deps
|
|
3788
|
+
dep_changes["updated"] = meaningful_deps + sync_only_deps + unresolved
|
|
3712
3789
|
|
|
3713
3790
|
# Phase 2: Collect work item IDs from all committed branches + target branch
|
|
3714
3791
|
workitem_ids: set[str] = set()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""API module for Datex Studio HTTP client and models."""
|
|
2
2
|
|
|
3
3
|
from dxs.core.api.app_config import (
|
|
4
|
+
diff_references,
|
|
4
5
|
fetch_app_config,
|
|
5
6
|
fetch_references,
|
|
6
7
|
fetch_settings,
|
|
@@ -43,6 +44,7 @@ from dxs.core.api.models import (
|
|
|
43
44
|
__all__ = [
|
|
44
45
|
"ApiClient",
|
|
45
46
|
# AppConfig helpers
|
|
47
|
+
"diff_references",
|
|
46
48
|
"fetch_app_config",
|
|
47
49
|
"fetch_references",
|
|
48
50
|
"fetch_settings",
|
|
@@ -114,3 +114,93 @@ def fetch_references(
|
|
|
114
114
|
if direct_only:
|
|
115
115
|
refs = [r for r in refs if r.get("isDirect")]
|
|
116
116
|
return refs
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def _reference_key(ref: dict[str, Any]) -> str | None:
|
|
120
|
+
"""Stable identity for an AppConfig reference.
|
|
121
|
+
|
|
122
|
+
``uniqueIdentifier`` (e.g. ``datex-inventory``) is the durable cross-branch key;
|
|
123
|
+
``referenceName`` is the human label and is used only as a fallback.
|
|
124
|
+
"""
|
|
125
|
+
return ref.get("uniqueIdentifier") or ref.get("referenceName")
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def diff_references(
|
|
129
|
+
from_refs: list[dict[str, Any]],
|
|
130
|
+
to_refs: list[dict[str, Any]],
|
|
131
|
+
) -> dict[str, Any]:
|
|
132
|
+
"""Diff two AppConfig reference lists by their resolved ``version``.
|
|
133
|
+
|
|
134
|
+
References are keyed by :func:`_reference_key` (``uniqueIdentifier``) and a
|
|
135
|
+
dependency counts as *updated* when its ``version`` (the resolved
|
|
136
|
+
``versionName`` stamped at publish time, e.g. ``20260531.201800``) differs.
|
|
137
|
+
|
|
138
|
+
This is the authoritative dependency-change signal. The legacy
|
|
139
|
+
``marketPlaceApplicationVersionId`` field was dropped when settings/references
|
|
140
|
+
were merged into AppConfig (datex-application-api PR 3754), so any comparison
|
|
141
|
+
on that field reports everything as unchanged.
|
|
142
|
+
|
|
143
|
+
Returns a dict with ``summary`` plus ``added`` / ``removed`` / ``updated``
|
|
144
|
+
lists. ``updated`` entries carry ``from_version`` and ``to_version``;
|
|
145
|
+
``added`` / ``removed`` carry ``version``.
|
|
146
|
+
"""
|
|
147
|
+
from_by = {k: r for r in from_refs if (k := _reference_key(r))}
|
|
148
|
+
to_by = {k: r for r in to_refs if (k := _reference_key(r))}
|
|
149
|
+
|
|
150
|
+
added: list[dict[str, Any]] = []
|
|
151
|
+
removed: list[dict[str, Any]] = []
|
|
152
|
+
updated: list[dict[str, Any]] = []
|
|
153
|
+
unchanged_count = 0
|
|
154
|
+
|
|
155
|
+
for key, to_ref in to_by.items():
|
|
156
|
+
from_ref = from_by.get(key)
|
|
157
|
+
if from_ref is None:
|
|
158
|
+
added.append(
|
|
159
|
+
{
|
|
160
|
+
"reference_name": to_ref.get("referenceName"),
|
|
161
|
+
"unique_identifier": to_ref.get("uniqueIdentifier"),
|
|
162
|
+
"version": to_ref.get("version"),
|
|
163
|
+
"is_direct": to_ref.get("isDirect"),
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
elif from_ref.get("version") != to_ref.get("version"):
|
|
167
|
+
updated.append(
|
|
168
|
+
{
|
|
169
|
+
"reference_name": to_ref.get("referenceName"),
|
|
170
|
+
"unique_identifier": to_ref.get("uniqueIdentifier"),
|
|
171
|
+
"from_version": from_ref.get("version"),
|
|
172
|
+
"to_version": to_ref.get("version"),
|
|
173
|
+
"is_direct": to_ref.get("isDirect"),
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
else:
|
|
177
|
+
unchanged_count += 1
|
|
178
|
+
|
|
179
|
+
for key, from_ref in from_by.items():
|
|
180
|
+
if key not in to_by:
|
|
181
|
+
removed.append(
|
|
182
|
+
{
|
|
183
|
+
"reference_name": from_ref.get("referenceName"),
|
|
184
|
+
"unique_identifier": from_ref.get("uniqueIdentifier"),
|
|
185
|
+
"version": from_ref.get("version"),
|
|
186
|
+
"is_direct": from_ref.get("isDirect"),
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
added.sort(key=lambda x: str(x.get("reference_name") or ""))
|
|
191
|
+
removed.sort(key=lambda x: str(x.get("reference_name") or ""))
|
|
192
|
+
updated.sort(key=lambda x: str(x.get("reference_name") or ""))
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
"summary": {
|
|
196
|
+
"added_count": len(added),
|
|
197
|
+
"removed_count": len(removed),
|
|
198
|
+
"updated_count": len(updated),
|
|
199
|
+
"unchanged_count": unchanged_count,
|
|
200
|
+
"from_total": len(from_refs),
|
|
201
|
+
"to_total": len(to_refs),
|
|
202
|
+
},
|
|
203
|
+
"added": added,
|
|
204
|
+
"removed": removed,
|
|
205
|
+
"updated": updated,
|
|
206
|
+
}
|
|
@@ -454,6 +454,17 @@ class ConfigurationEndpoints:
|
|
|
454
454
|
config_type = ConfigurationEndpoints.normalize_type(config_type)
|
|
455
455
|
return f"/applications/{branch_id}/{config_type}configurations/validate"
|
|
456
456
|
|
|
457
|
+
@staticmethod
|
|
458
|
+
def custom_type_nomenclature(branch_id: int) -> str:
|
|
459
|
+
"""Get the custom-type nomenclature registry for a branch.
|
|
460
|
+
|
|
461
|
+
Returns a flat catalog of every custom type as ``<Package>.<Type>``,
|
|
462
|
+
with each enum's members listed in ``constantValues`` (empty for
|
|
463
|
+
interfaces). This is a customtype-specific route, distinct from the
|
|
464
|
+
``{type}configurations`` CRUD surface and the ``/contexts`` route.
|
|
465
|
+
"""
|
|
466
|
+
return f"/applications/{branch_id}/customtypeconfigurations/nomenclature"
|
|
467
|
+
|
|
457
468
|
# Singular-to-plural mapping for the configId endpoint.
|
|
458
469
|
# The configId endpoint uses the plural enum name (e.g., "endpoints"),
|
|
459
470
|
# NOT the "{type}configurations" pattern used by CRUD endpoints.
|