Skip to content

Commit

Permalink
refactor: encapsulate server component layers (#1647)
Browse files Browse the repository at this point in the history
* chore: rename class to `ElasticsearchBackend`

* chore: moving the query builder to the elasticsearch module

* refactor: query builder accesible through the backend instance

* fix: moving and rename models

* revert: configs

* refactor: move TaskStatus class to commons module

* refactor: move TaskStatus class to commons module

* refactor: allow filter records with annotations/predictions

* test: update tests

* refactor: move all elasticsearch metrics to the elasticsearch layer (#1651)

* perf: handle all backend errors in calls

* refactor: remove all filters references outside the elasticsearch module

* refactor: move query generation to backend module (#1652)

* refactor: move es-mappings to backend module (#1653)

* refactor: search and scan to the backend component

* chore: cleaning source

* chore: renaming module elasticsearch -> backend

* fix: sort by id and default sorting

* Refactor/normalize dao layer (#1654)

* refactor: normalize daos layer

* chore: remove refs to EsRecordDataFieldNames

* refactor: keep dao models and extends in service layer

* revert: rollback wrong documentation

* refactor: keep service models and extends in api layer (#1655)

* chore: moving helpers and class renaming

* revert: renaming

* refactor: clean and normalize api layer (#1657)

* refactor: more cleaning models

* refactor: fetch metrics for search on services

* refactor: resolve TODOs

* chore: add TODOs

* refactor: keep elasticsearch details inside the backend module

* chore: cleaning code

* fix: create index properly

* test: fix tests

* refactor: clean API models

* fix: `id_from` changes

(cherry picked from commit b9e7562)
  • Loading branch information
frascuchon committed Sep 29, 2022
1 parent 5f92a1b commit 4273388
Show file tree
Hide file tree
Showing 103 changed files with 4,147 additions and 5,742 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -65,7 +65,6 @@ server = [
"python-jose[cryptography]~=3.2.0",
"passlib[bcrypt]~=1.7.4",
# Info status
"hurry.filesize", # TODO: remove
"psutil ~= 5.8.0",
]
listeners = [
Expand Down
54 changes: 0 additions & 54 deletions src/rubrix/server/_helpers.py

This file was deleted.

155 changes: 0 additions & 155 deletions src/rubrix/server/apis/v0/config/tasks_factory.py

This file was deleted.

0 comments on commit 4273388

Please sign in to comment.