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

Partial context updates #93

Open
wants to merge 282 commits into
base: dev
Choose a base branch
from
Open

Partial context updates #93

wants to merge 282 commits into from

Conversation

pseusys
Copy link
Collaborator

@pseusys pseusys commented Mar 13, 2023

Description

Context storages are updated partially now instead of reading and writing whole data at once.

Checklist

  • I have covered the code with tests
  • I have added comments to my code to help others understand it
  • I have updated the documentation to reflect the changes
  • I have performed a self-review of the changes
  • Consider extending UpdateScheme from BaseModel
  • Decide how we want to use clear method.

@pseusys pseusys self-assigned this Mar 13, 2023
@pseusys pseusys requested review from kudep and RLKRo April 7, 2023 01:43
@pseusys pseusys added the enhancement New feature or request label Apr 7, 2023
@pseusys pseusys marked this pull request as ready for review April 7, 2023 01:43
pseusys and others added 8 commits April 16, 2023 03:49
* add install-dependencies to test matrix

* skip telegram tests on missing dependencies

* skip telegram tests on missing dependencies

* add a separate job for `test_no_deps`
* release notes added to docs

* no error on environment misconfiguration

* lint applied

* fix typos GTIHUB -> GITHUB

* favicon code changed

* header size changed

* add sections to Development

* key added to env file

* feat/release_notes_in_docs: add new token & use build by read-only GH token

* feat/release_notes_in_docs: re-order development content of doc

* feat/release_notes_in_docs: change token setuping only in GH env

---------

Co-authored-by: avsakharov <[email protected]>
Co-authored-by: Denis Kuznetsov <[email protected]>
* module index generator scripts changed

* example links generation code and interface changed; examples made flat.

* lint fixed

* conf file reformatted

* library source patching added

* lint applied

* patching called before `sphinx-build`

* double patching fixed

* example title in nbgalleries patched

* linted

* format tests fixed

* patching docs added

* lint fixed

* TODO added

* type hints fixed

* one element tuples removed

* optional replaced with unions

* contribution fixed
* docs: remove actor from example

* docs: rename documentation to API reference

* docs: replace examples with tutorials and vice versa

* docs: add toy_script to the doc

* docs: add description to tutorials

* add description to community section

* fix misprint

* add description to development section

* fix link

* docs: add description for each stage of ActorStage

* fix: favicons warning

* docs: remove unnecessary descriptions

* doc: add modules descriptions in utils

* linted

* delete dbs/file.json

* add release_notes to gitignore

* unnecessary files deleted

* docs: add descriptions to message.py

* docs: small fixes

* Update dff/utils/testing/toy_script.py

Co-authored-by: Roman Zlobin <[email protected]>

* docs/rename_and_replace_some_sections: rm build links of examples from docs

* Update docs/source/examples.rst

Co-authored-by: Roman Zlobin <[email protected]>

* Update docs/source/tutorials.rst

Co-authored-by: Roman Zlobin <[email protected]>

* Update docs/source/tutorials.rst

Co-authored-by: Roman Zlobin <[email protected]>

* Update dff/utils/testing/common.py

Co-authored-by: Roman Zlobin <[email protected]>

* docs: bug fixes

* Update dff/context_storages/protocol.py

Co-authored-by: Roman Zlobin <[email protected]>

* docs: corrections

* docs: add info about basic tutorials

* docs building fixed

* docs/rename_and_replace_some_sections: fix README

---------

Co-authored-by: Denis Kuznetsov <[email protected]>
Co-authored-by: Roman Zlobin <[email protected]>
Co-authored-by: pseusys <[email protected]>
* pipeline properties

* functions signature changed

* actor removed from imports

* actor args added to pipeline constructor

* all signatures changed, tests passing

* test coverage and lint

* Actor encapsulated into Pipeline

* pipeline naming changed in examples

* docs cleaned from actor leftovers

* `Actor` is no longer a `BaseModel`

* formatted

* documentation fixed (?)

* actor method signatures updated

* actors replaced with pipelines

* method docs updated

* unused params removed from actor

* merge error found and fixed

* remove actor mentions from tg && remove no_pipeline examples

* docs: change returns to return, othe, remove types

* label priority returned

* update set_actor method

* replace pl by _

* docs: add description about actor

* underscores fixed

* docs: add descriptions about start and fallback labels

* docs: Correct the list display

* remove actor from 1_basic.py example

* docs: Correct to Pipeline

* docs: fix some mistakes

* docs: remove actor from README

* fix linting

* remove actor mentions from telegram examples

* actor moved to pipeline

* no pipeline examples removed

* coveragerc cleaned

---------

Co-authored-by: Denis Kuznetsov <[email protected]>
Co-authored-by: Roman Zlobin <[email protected]>
Co-authored-by: avsakharov <[email protected]>
pyproject.toml Outdated Show resolved Hide resolved
- Make them modular
- Remove unnecessary context/context_dict usage
- Add test for concurrent db usage

Some tests fail. Most of these are due to wrong return list order but there's one test (test_raises_on_missing_field_keys) that represents a needed change.
# Conflicts:
#	chatsky/__rebuild_pydantic_models__.py
#	chatsky/core/context.py
#	chatsky/core/pipeline.py
#	tests/core/test_actor.py
#	tests/stats/test_defaults.py
#	tutorials/pipeline/2_pre_and_post_processors.py
#	tutorials/pipeline/3_pipeline_dict_with_services_full.py
@RLKRo RLKRo added this to the Release v0.10 milestone Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants