From 436d9911ba62f9592ccd33abab7472025439bf7d Mon Sep 17 00:00:00 2001 From: Sandro-Meireles Date: Fri, 14 May 2021 14:18:10 -0300 Subject: [PATCH 1/2] feat: Changed order_by from RepositoryNLPLog model --- README.md | 1 + bothub/common/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01db0e5b9..751297f7f 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ You can set environment variables in your OS, write on ```.env``` file or pass v | OIDC_RP_SIGN_ALGO | ```string``` | ```RS256``` | Sets the algorithm the IdP uses to sign ID tokens. | OIDC_DRF_AUTH_BACKEND | ```string``` | ```bothub.authentication.authorization.WeniOIDCAuthenticationBackend``` | Define the authentication middleware for the django rest framework. | RECAPTCHA_SECRET_KEY | ```string``` | ```''``` | Token of the recaptcha used in the validation of a user's registration. +| REPOSITORY_NLP_LOG_LIMIT | ```int``` | ```10000``` | Limit of query size to repository log ## Roadmap diff --git a/bothub/common/models.py b/bothub/common/models.py index 3045d27b0..270d1ab6c 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -1211,7 +1211,7 @@ class Meta: condition=Q(from_backend=False), ) ] - ordering = ["-created_at"] + ordering = ["-id"] text = models.TextField(help_text=_("Text")) user_agent = models.TextField(help_text=_("User Agent")) From e876421f2b493019715edff81c5369bf9d49bc9e Mon Sep 17 00:00:00 2001 From: Lucas Agra de Omena Date: Fri, 14 May 2021 14:43:15 -0300 Subject: [PATCH 2/2] Bump version 2.1.23 --- bothub/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bothub/urls.py b/bothub/urls.py index e1a9f358c..806d3ed2c 100644 --- a/bothub/urls.py +++ b/bothub/urls.py @@ -16,7 +16,7 @@ schema_view = get_schema_view( openapi.Info( title="API Documentation", - default_version="v2.1.21", + default_version="v2.1.23", description="Documentation", terms_of_service="https://bothub.it/terms", contact=openapi.Contact(email="bothub@ilhasoft.com.br"),