Skip to content

[18.0][FIX] sentry_client: review rework preview (config fallback + systray) - #16

Closed
dnplkndll wants to merge 2 commits into
18.0from
18.0-sentry-cr
Closed

[18.0][FIX] sentry_client: review rework preview (config fallback + systray)#16
dnplkndll wants to merge 2 commits into
18.0from
18.0-sentry-cr

Conversation

@dnplkndll

Copy link
Copy Markdown

Fork-only runboat preview of the rework for ChristophAbenthungCibex's review on OCA#3627. Not for merge — will be folded into the [ADD] commit on the real PR branch after UI verification.

  • Config fallback: [options]-section sentry_* keys (18.0 layout) instead of the 19.0-only [sentry] section — proven live against stock odoo:18.0.
  • Systray launcher: o_nav_entry + fa-bullhorn replacing the misaligned btn btn-link + duplicate fa-bug.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

…nfig

Backport of the 19.0 module (OCA#3622) to 18.0. Identical
feature set; only the API surfaces that changed between series are
adapted:

- `user.all_group_ids` (19.0) → `user.groups_id` (18.0). 19.0 split the
  groups field into a stored direct collection plus a computed
  transitive closure; on 18.0 `groups_id` already returns the full set.
- `group.privilege_id.category_id` (19.0) → `group.category_id` (18.0).
  19.0 introduced the privilege layer between groups and categories;
  on 18.0 groups carry the category directly.
- Manifest version `18.0.1.0.0`.

Everything else — Connection UI block (Browser DSN / Environment /
Release) with `odoo.conf [sentry]` fallback, four tier toggles with
sample-rate knobs, vendored Sentry SDK under `static/lib`, OWL
ErrorBoundary capturing the wrapping error and dedup-marking it,
per-tab UUID + `workflow_id` + `surface` tags, per-user replay opt-out,
and the public `/sentry_client/config.json` endpoint — ports verbatim.

The OWL `error_handlers` registry, settings `<block>`/`<setting>`
pattern, and asset bundle keys are identical between 18.0 and 19.0.
Review rework for ChristophAbenthungCibex:

- Config fallback now reads the top-level sentry_* options from
  odoo.conf's [options] section — the layout the server-side sentry
  module actually uses on 18.0 (the dedicated [sentry] section only
  exists from 19.0), so the documented shared-DSN setup works.
- Systray launcher restyled as o_nav_entry (the core idiom for a plain
  navbar launcher, e.g. the burger menu) instead of btn btn-link, which
  skipped the navbar entry height/padding and rendered misaligned.
- Icon fa-bug -> fa-bullhorn: fa-bug is the debug-mode systray icon
  sitting right next to it; fa-bullhorn matches Sentry's own feedback
  iconography.

Assisted-by: Claude Opus 5
@dnplkndll dnplkndll closed this Aug 21, 2026
@dnplkndll
dnplkndll deleted the 18.0-sentry-cr branch August 21, 2026 02:19
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.

1 participant