Skip to content

[pull] main from camunda:main#262

Merged
pull[bot] merged 25 commits intoMu-L:mainfrom
camunda:main
Sep 22, 2025
Merged

[pull] main from camunda:main#262
pull[bot] merged 25 commits intoMu-L:mainfrom
camunda:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Sep 22, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

vjachyslav and others added 25 commits September 15, 2025 17:13
Add IT to validate user creation with just mandatory fields
Turned UsageMetric and UsageMetricTU indices from static index descriptors to template-based descriptors.
This change enables index rollover, retention, and lifecycle management for usage metric data,
aligning with the approach used for high-volume operational/process data indices.
Introduces `UsageMetricsArchiverJob` to archive `usage-metric` and `usage-metric-tu` documents
using the existing batch move (reindex + delete) pattern.
The test fails because it simulates upgrading from the previous platform version (8.8.x),
which creates usage-metric indices as concrete indices. The current code expects these to be managed
via index templates. This leads to mapping assertion failures.

Disabling the test until the template conversion is backported to the previous stable branch
and upgrade compatibility is ensured.
## Description

Fixes some wrong or flaky tests
- fixed wrong order in RdbmsPurger (only worked in second run on empty
DB)
- fixed flaky BatchOperation test (only worked in second run on empty
DB)
- added missing RoleMember filters (only worked in second run on empty
DB)
## Description
On user creation only `username` and `password` should be mandatory.

Currently, in the
[docs](https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-rest/specifications/create-user/)
all fields apart from name are mandatory.

On the client side we have validation for all fields on user creation:
```
ArgumentUtil.ensureNotNull("username", request.getUsername());
ArgumentUtil.ensureNotNull("email", request.getEmail());
ArgumentUtil.ensureNotNull("name", request.getName());
ArgumentUtil.ensureNotNull("password", request.getPassword());
```

We also do not handle null values for `name` and `email` in `UserRecord`

I've tested the below scenario (as per ticket test case):
Creating a user:
<img width="953" height="265" alt="Screenshot 2025-09-18 at 11 25 16"
src="https://github.com/user-attachments/assets/85c28c32-a5cf-4c49-af5d-3faa562a3e7f"
/>

Calling get current user response:
<img width="511" height="365" alt="Screenshot 2025-09-18 at 11 26 46"
src="https://github.com/user-attachments/assets/86a66cb9-f969-4f99-a4fc-a377ad0bfa9f"
/>

## Checklist

<!--- Please delete options that are not relevant. Boxes should be
checked by reviewer. -->
- [x] Enable backports when necessary (fex. [for bug
fixes](https://github.com/camunda/camunda/blob/main/CONTRIBUTING.md#backporting-changes)
or [for CI
changes](https://github.com/camunda/camunda/wiki/CI-&-Automation#when-to-backport-ci-changes)).

## Related issues

closes #38324
## Description

Adds the missing unassignMappingRuleFromTenant command to the Camunda
Java Client that exposes the `DELETE
/v2/tenants/:tenantId/mapping-rules/:mappingRuleId` API endpoint.

## Checklist

<!--- Please delete options that are not relevant. Boxes should be
checked by reviewer. -->
- [ ] Enable backports when necessary (fex. [for bug
fixes](https://github.com/camunda/camunda/blob/main/CONTRIBUTING.md#backporting-changes)
or [for CI
changes](https://github.com/camunda/camunda/wiki/CI-&-Automation#when-to-backport-ci-changes)).

## Related issues

closes #35771
## Description

Fixes context path handling at login and logout.

## Demo

Since I am not very familiar with this part, here's a demo how it works.

https://github.com/user-attachments/assets/64c53aee-18f1-4d25-8fea-3e15ae6651d5

## Related issues

closes #37616
## Description

Fix value type in payload in test
)

## Description

This PR closes the remaining gaps for usage-metrics retention on ES/OS
by:
- Converting the `usage-metric` and `usage-metric-tu` indices to
template descriptors (enables time-based rollover and lifecycle
actions).
- Adding a `UsageMetricsArchiverJob` that archives documents via our
existing reindex + delete batch pattern.

### Why:
Previously, a custom ILM policy existed but wasn’t applied anywhere, and
the usage-metrics indices did not roll over. As a result, retention
(e.g., 730d) couldn’t be enforced, and shards would grow indefinitely.
This PR aligns usage-metrics with our batch-operation/process indices
approach.

### What was changed:
- Converted the `usage-metric` and `usage-metric-tu` indices to template
descriptors.
- Added new archiver job (`UsageMetricsArchiverJob`) to move aged
documents to dated indices and purge source segments, matching our
established batch-archive strategy.
- Tests verifying archive batch behavior.

### Impact / compatibility:
- No schema/API changes.
- Existing data remains intact; newly created dated indices will be
governed by ILM.

## Checklist

<!--- Please delete options that are not relevant. Boxes should be
checked by reviewer. -->
- [ ] Enable backports when necessary (fex. [for bug
fixes](https://github.com/camunda/camunda/blob/main/CONTRIBUTING.md#backporting-changes)
or [for CI
changes](https://github.com/camunda/camunda/wiki/CI-&-Automation#when-to-backport-ci-changes)).

## Related issues

closes #34709
## Description

<!-- Describe the goal and purpose of this PR. -->

Skip failing tests which are due to bugs and increase timeout for flaky
test. Also, increased error handling for easier debugging upon test
failure.

Successful test run [
here](https://github.com/camunda/camunda/actions/runs/17908078120).

## Checklist

<!--- Please delete options that are not relevant. Boxes should be
checked by reviewer. -->
- [ ] Enable backports when necessary (fex. [for bug
fixes](https://github.com/camunda/camunda/blob/main/CONTRIBUTING.md#backporting-changes)
or [for CI
changes](https://github.com/camunda/camunda/wiki/CI-&-Automation#when-to-backport-ci-changes)).

## Related issues

closes #
@pull pull bot locked and limited conversation to collaborators Sep 22, 2025
@pull pull bot added the ⤵️ pull label Sep 22, 2025
@pull pull bot merged commit 7fb415f into Mu-L:main Sep 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants