Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️Stop setting a default title on doc creation #634

Merged
merged 5 commits into from
Feb 15, 2025
Merged

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Feb 12, 2025

Purpose

We were setting a default title to our document during creation, but we should not do that, it created lot of similar titles, lot of documents will show up during search.

Proposal

  • 🩹(frontend) minor fixes
  • ♻️(frontend) stop setting a default title on doc creation
  • ➕(backend) add django-test-migrations
  • 🩹(migration) add migration to update default titles
  • 🦺(migration) add back the migration folders to linter

@AntoLC AntoLC added bug Something isn't working frontend backend labels Feb 12, 2025
@AntoLC AntoLC self-assigned this Feb 12, 2025
@AntoLC AntoLC force-pushed the fix/let-empty-title branch 2 times, most recently from b45cadc to e7b620f Compare February 12, 2025 11:43
@AntoLC AntoLC requested review from sampaccoud and lunika February 12, 2025 11:59
@AntoLC AntoLC force-pushed the fix/let-empty-title branch from e7b620f to 6738c6d Compare February 12, 2025 12:43
@AntoLC AntoLC force-pushed the fix/let-empty-title branch from 6738c6d to 2dac4a6 Compare February 15, 2025 22:21
- fix linter warning on one e2e test
- improve logo svg
- improve cursor
- improve grid loader
We were setting a default title to our document
during creation, but we should not do that,
it created lot of similar titles, lot of
documents will show up during search.
Add django-test-migrations to the project.
It is a tool that helps to test Django migrations.
The frontend was setting a default titles for
documents with empty titles.
This migration updates the document table to set
the title to null instead of the default title.
We add a test to ensure that the migration
works as expected.
@AntoLC AntoLC force-pushed the fix/let-empty-title branch from 2dac4a6 to 6888586 Compare February 15, 2025 22:23
Previous commit add "core/tests/migrations".
The linter could not pass on it because all the
migration folders were excluded from the linter.
We remove this exclusion, tests and migrations can
now be linted and formatted automatically.
@AntoLC AntoLC force-pushed the fix/let-empty-title branch from 6888586 to 82417c6 Compare February 15, 2025 22:28
@AntoLC AntoLC enabled auto-merge (rebase) February 15, 2025 22:28
@AntoLC AntoLC merged commit 15dc1e3 into main Feb 15, 2025
18 of 19 checks passed
@AntoLC AntoLC deleted the fix/let-empty-title branch February 15, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants