-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task(api): atualiza o frontend com as novas informações salvas de cad…
…a matéria na api (#125) * fix(Users): Corrige o erro de troca de nome de usuario. - Caso o usuario trocasse de nome no Google, o nome nao era salvo e o usuario nao conseguia logar. * fix(users-name-change): Os dados do usuário são sempre salvos após o login * api(views): update function calling in search api * db(migrations): install Trigram and pt_unaccent * db_handler(search): create new search function * test(db_handler): add test for new function * api(views): throw error when insufficient chars * api(tests): test for search api insufficient chars * make(database): Cria comandos make para atualizar o banco de dados. - Também foram corrigidos comentários no arquivo _updatedb.py_ * api(views): add rota de ano/período disponíveis Co-authored-by: GabrielCastelo-31 <[email protected]> * test(api): verifica retorno da rota ano/período * db(migrations): update migrations * db(models): update special_dates field * api(web-scraping): update functions add intervals * api(web-scraping): improve function complexity * python(requirements): add Unidecode * api(models): add unicode field to search improve * api(views): apply admin search method to endpoint * api(views): change name treatment to func * api(views): update search api - improve user exp * api(search-api-test): remove useless tests * utils(db-handler): update similarity function - also removes search by name function * utils(db-handler): remove useless tests * tests(year-period): add descrição ao teste * apí(commands): rm chars especiais do html do sigaa * api(mock): atualizando mock sem chars especiais * api(utils): melhora o entendimento do código * api(utils): cria func sep. p/start e end das datas * api(utils): separa func start end em duas de index * tests(setup.cfg): config codecov to ignore files * tests(codecov): add codecov "no cover" to ignore * Adiciona foto de perfil aos dados retornados. * docs(update-api): Atualiza os endpoints da API - Todos os endpoints sofrearam alterações Co-authored-by: mateusvrs <[email protected]> * main(readme): update README.md Co-authored-by: mateusvrs <[email protected]> * Update api/utils/web_scraping.py Co-authored-by: Gabriel Henrique Castelo <[email protected]> * Update api/utils/web_scraping.py Co-authored-by: Gabriel Henrique Castelo <[email protected]> * main(readme): remove embeds * Corrige erro causado após correção de tipagem de retorno. -Volta ao bc28e58 * Adiciona tipagem de retorno para funções de web scraping * applying and mergin migrations * fix(utils): get start e end index com return erro * main(readme): fix repo redirects * typo(tests): add pep8 * Revert "api(search): corrige experiência do usuário e adiciona verificações" * Revert "Revert "api(search): corrige experiência do usuário e adiciona verificações"" * docs(redoc): cria documentação integrada com swagger (#124) * python(requirements): adiciona drf_yasg * docs(users): descreve view de registro c/swagger * redoc(api): descreve views de search e year/period * docs(urls): adiciona rota do redoc e swagger * core(settings): swagger aos app django + rota 404 * api(templates): cria página 404 personalizada * docs(api): customiza erros com classe específica * docs(core): adiciona contribuidores ao docs da api * docs(swagger): classe p/padrão de response erros * docs(users): descreve view de login e logout * docs(api): simplifica classe de erro swagger * api(views): atualiza com novo método de filtragem * test(users): erros de acordo com novo padrão * test(config): no cover nos casos de except da docs --------- Co-authored-by: GabrielCastello-31 <[email protected]> Co-authored-by: Caio <[email protected]> Co-authored-by: Gabriel Henrique Castelo <[email protected]>
- Loading branch information
1 parent
d171621
commit 78aef57
Showing
34 changed files
with
949 additions
and
1,767 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
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,19 @@ | ||
# Generated by Django 4.2.5 on 2023-11-27 15:05 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0003_remove_class_workload_class_special_dates_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='class', | ||
name='special_dates', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=256), size=3), default=list, size=None), | ||
), | ||
] |
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,22 @@ | ||
# Generated by Django 4.2.5 on 2023-11-26 20:40 | ||
|
||
from django.db import migrations | ||
from django.contrib.postgres.operations import CreateExtension | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0003_remove_class_workload_class_special_dates_and_more'), | ||
] | ||
|
||
operations = [ | ||
CreateExtension("pg_trgm"), | ||
migrations.RunSQL( | ||
"CREATE TEXT SEARCH CONFIGURATION portuguese_unaccent( COPY = portuguese );" | ||
), | ||
migrations.RunSQL( | ||
"ALTER TEXT SEARCH CONFIGURATION portuguese_unaccent " | ||
+ "ALTER MAPPING FOR hword, hword_part, word " | ||
+ "WITH unaccent, portuguese_stem;" | ||
) | ||
] |
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,18 @@ | ||
# Generated by Django 4.2.5 on 2023-11-27 18:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0004_auto_20231126_1740'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='discipline', | ||
name='unicode_name', | ||
field=models.CharField(default='', max_length=128), | ||
), | ||
] |
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,14 @@ | ||
# Generated by Django 4.2.5 on 2023-11-28 01:55 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0004_alter_class_special_dates'), | ||
('api', '0005_discipline_unicode_name'), | ||
] | ||
|
||
operations = [ | ||
] |
Oops, something went wrong.