Skip to content

Commit

Permalink
MAIN-T-124 It's possible to crate document with empty name and descri…
Browse files Browse the repository at this point in the history
…ption

Make document name mandatory and add non-empty checks

This commit introduces a change to make the document name field mandatory in the database and in the DocumentEntity class. It also includes new not-empty check constraints for uid in user table, the token in reset_password_token table, and the name in the document table.

Add validation for DocumentRequest and improve log messages

The DocumentRequest fields have been modified to include validation annotations preventing empty or null values, enhancing data integrity. Changes have also been made to improve the precision of logged messages, including the addition of a post-save log in DefaultDocumentService.kt. Lastly, the code constructs a DocumentRequest using apply method for more readability.

Merge-request: MAIN-MR-72
Merged-by: Hanna Kurhuzenkava <[email protected]>
  • Loading branch information
hanna-eismant authored and Space Cloud committed Apr 26, 2024
1 parent e773a7d commit d5b20c9
Show file tree
Hide file tree
Showing 12 changed files with 78,972 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gradle-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
args: --project-dir,server,--baseline,qodana.sarif.json
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args: --project-dir,server,--baseline,qodana.sarif.json

unit:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit d5b20c9

Please sign in to comment.