sergehuber opened a new pull request, #755: URL: https://github.com/apache/unomi/pull/755
**JIRA** - https://issues.apache.org/jira/browse/UNOMI-879 — Unified CRUD command system for Karaf shell (developer commands module). This branch is **stacked**: it builds on the UNOMI-920 commit, then adds the UNOMI-879 shell work. For more information (each PR targets the branch below until the bottom merges): https://github.github.com/gh-stack/introduction/overview/ --- ### UNOMI-879 — Unified CRUD shell (`shell-dev-commands`) The previous Karaf shell commands grew **inconsistent** across object types (`list` / `view` style varied), duplicated a lot of logic, used **different arguments and behaviours** for similar operations, and scattered **help and docs**, which raised **maintenance cost** and made the shell harder for **new operators and contributors**. The unified **`unomi:crud`** style (operations × types, shared table/CSV output, JSON create/update, and coherent completion/help) matches **[UNOMI-879](https://issues.apache.org/jira/browse/UNOMI-879)**: one predictable pattern, shared plumbing for listing and errors, and less duplicated command code so fixes and features apply everywhere at once. Replaces the older fragmented list/view-style commands with a **consistent CRUD-oriented layout** under `org.apache.unomi.shell.dev`: shared routing (`UnomiCrudCommand`), **`CrudCommand`** / **`BaseCrudCommand`**, table/CSV listing support, completers, and **type-specific** command classes (rules, segments, profiles, events, sessions, definitions, etc.). Deployment / tail / watch helpers are moved into the same **`dev.commands`** package alongside the new commands. **API support (aligned with `unomi-3-dev` behaviour):** - **`EventService#deleteEvent(String)`** / **`EventServiceImpl`** — remove event by id via persistence. - **`ProfileService#deleteSession(String)`** / **`ProfileServiceImpl`** — remove session by id via persistence. Shell wiring depends on these for **`EventCrudCommand`** / **`SessionCrudCommand`** delete operations. **Build:** `bom` / `shell-dev-commands` `pom` updates as needed for the module. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
