Skip to content

Conversation

@mkincaid-bw
Copy link
Contributor

๐ŸŽŸ๏ธ Tracking

https://bitwarden.atlassian.net/browse/DBOPS-80

๐Ÿ“” Objective

We found invalid SQL syntax in the OrganizationUser_UpdateMany stored procedure. Oddly, the invalid syntax does not throw an error, but it also does not perform the expected action.

    EXEC [dbo].[User_BumpManyAccountRevisionDates]
    (
        SELECT [UserId]
        FROM @OrganizationUserInput
    )

This code does not actually call User_BumpManyAccountRevisionDates, but instead simply returns the results of the SELECT statement within the parameters. I'm assuming why this has not been noticed before. This PR fixes the invalid syntax, and now the resulting call to User_BumpManyAccountRevisionDates should work as expected.

๐Ÿ“ธ Screenshots

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

๐Ÿฆฎ Reviewer guidelines

  • ๐Ÿ‘ (:+1:) or similar for great changes
  • ๐Ÿ“ (:memo:) or โ„น๏ธ (:information_source:) for notes or general info
  • โ“ (:question:) for questions
  • ๐Ÿค” (:thinking:) or ๐Ÿ’ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • ๐ŸŽจ (:art:) for suggestions / improvements
  • โŒ (:x:) or โš ๏ธ (:warning:) for more significant problems or concerns needing attention
  • ๐ŸŒฑ (:seedling:) or โ™ป๏ธ (:recycle:) for future improvements or indications of technical debt
  • โ› (:pick:) for minor or nitpick changes

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

โœ… All modified and coverable lines are covered by tests.
โœ… Project coverage is 60.00%. Comparing base (93a28ee) to head (91f439d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6923      +/-   ##
==========================================
+ Coverage   56.08%   60.00%   +3.92%     
==========================================
  Files        1971     1971              
  Lines       87090    87090              
  Branches     7759     7759              
==========================================
+ Hits        48841    52260    +3419     
+ Misses      36441    32935    -3506     
- Partials     1808     1895      +87     

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

๐Ÿš€ New features to boost your workflow:
  • โ„๏ธ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • ๐Ÿ“ฆ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ 885a7052-74f3-4068-a9c7-31f87b231400

Great job! No new security vulnerabilities introduced in this pull request

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.

2 participants