-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add keywords category / update keywords list with script (#167)
* feat: add category / update keywords list with script * wip: test test_long_sentence_theme_get_themes_keywords_duration * test: test_long_sentence_theme_get_themes_keywords_duration * wip: before remove keywords in differnt themes * refacto: keyword inside another keyword * readme: doc alembic * sql: saved alembic version * chores poetry lock * logs: to info * test * ci: test * ci test * test: ci * ci:test * ci: test * ci: test drop table on ci
- Loading branch information
1 parent
fc4c98c
commit d699a8b
Showing
17 changed files
with
4,744 additions
and
1,056 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
alembic/versions/356882459cec_remove_category_keywords_change_columns_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""Remove: category keywords / change columns names | ||
Revision ID: 356882459cec | ||
Revises: faec286c7f92 | ||
Create Date: 2024-04-29 10:14:27.240887 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '356882459cec' | ||
down_revision: Union[str, None] = 'faec286c7f92' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('keywords', sa.Column('number_of_ressources', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_ressources_solutions', sa.Integer(), nullable=True)) | ||
op.drop_column('keywords', 'number_of_ressources_naturelles_causes') | ||
op.drop_column('keywords', 'number_of_ressources_naturelles_concepts_generaux') | ||
op.drop_column('keywords', 'category') | ||
op.drop_column('keywords', 'number_of_ressources_naturelles_solutions') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('keywords', sa.Column('number_of_ressources_naturelles_solutions', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
op.add_column('keywords', sa.Column('category', postgresql.JSON(astext_type=sa.Text()), autoincrement=False, nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_ressources_naturelles_concepts_generaux', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_ressources_naturelles_causes', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
op.drop_column('keywords', 'number_of_ressources_solutions') | ||
op.drop_column('keywords', 'number_of_ressources') | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ | |
name = "quotaclimat" | ||
version = "0.2.5" | ||
description = "" | ||
authors = ["Rambier Estelle <[email protected]>"] | ||
authors = [ | ||
"Rambier Estelle <[email protected]>", | ||
"Paul Leclercq <[email protected]>" | ||
] | ||
readme = "README.md" | ||
|
||
[tool.pytest.ini_options] | ||
|
Oops, something went wrong.
d699a8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report