You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use the shared request-logging filter and SQL-state constant instead of local copies #7792
Two places where a shared helper already exists but a local copy or literal is used instead.
1. WorkflowCompilingService inlines a copy of RequestLoggingFilter.
workflow-compiling-service/.../WorkflowCompilingService.scala declares an anonymous request-logging Filter inline (~lines 75-96). It is line-for-line equivalent to common/auth/.../RequestLoggingFilter.scala, which this module already depends on and which is already covered by RequestLoggingFilterSpec. All five sibling Dropwizard-4 services — access-control, computing-unit-managing, config, file, notebook-migration — call RequestLoggingFilter.register(environment.getApplicationContext) at exactly this point instead. This service is the lone holdout.
Worth recording so nobody "fixes" them too: amber's two remaining inline copies genuinely cannot use the shared filter. They are javax.servlet because amber pins Jetty 9.4.20, while RequestLoggingFilter is jakarta.servlet. Their existing TODO ("replace once Dropwizard is upgraded to 4.x") is accurate and out of scope.
2. SqlStates.UNIQUE_VIOLATION exists but four call sites hard-code "23505".
The constant is defined in common/dao/.../SqlStates.scala and is already used by ExternalAuthProvisioner and LocalAuthProvisioner, but these four compare against the raw literal:
Activity
refactor(services): use the shared request-logging filter and SQL-sta…