annotate .hgignore @ 4212:5f2d496c633f

core: get rid of `pickle`: Use of `pickle` to serialise data was a technical legacy that was causing trouble to store in database, to update (if a class was serialised, a change could break update), and to security (pickle can lead to code execution). This patch remove all use of Pickle in favour in JSON, notably: - for caching data, a Pydantic model is now used instead - for SQLAlchemy model, the LegacyPickle is replaced by JSON serialisation - in XEP-0373 a class `PublicKeyMetadata` was serialised. New method `from_dict` and `to_dict` method have been implemented to do serialisation. - new methods to (de)serialise data can now be specified with Identity data types. It is notably used to (de)serialise `path` of avatars. A migration script has been created to convert data (for upgrade or downgrade), with special care for XEP-0373 case. Depending of size of database, this migration script can be long to run. rel 443
author Goffi <goffi@goffi.org>
date Fri, 23 Feb 2024 13:31:04 +0100
parents 84f6bee6440d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
0208f9ac426a added .hgignore
Goffi <goffi@goffi.org>
parents:
diff changeset
1 syntax: glob
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
2 bridge_constructor/generated
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
3 .build
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
4 build
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
5 ctags_links/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
6 dist/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
7 .eggs/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
8 env/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
9 libervia_backend.egg-info/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
10 MANIFEST
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
11 .mypy_cache/
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
12 *.orig
3
0208f9ac426a added .hgignore
Goffi <goffi@goffi.org>
parents:
diff changeset
13 *.pyc
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
14 *.pyo
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
15 .pytest_cache
140
e496134ed679 added .pyv & twistd.pid to .hgignore
Goffi <goffi@goffi.org>
parents: 4
diff changeset
16 *.pyv
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
17 Session.vim
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
18 stubs/
3
0208f9ac426a added .hgignore
Goffi <goffi@goffi.org>
parents:
diff changeset
19 *.swo
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
20 *.swp
3
0208f9ac426a added .hgignore
Goffi <goffi@goffi.org>
parents:
diff changeset
21 tags
3687
1fe6742b8df8 misc (.hgignore): exlude e2e tests reports
Goffi <goffi@goffi.org>
parents: 3562
diff changeset
22 tests/e2e/report*
335
Goffi <goffi@goffi.org>
parents: 269
diff changeset
23 _trial_temp/
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
24 twistd.log
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
25 twistd.pid
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
26 twisted/plugins/dropin.cache
269
78140bb2f0e3 updated .hgignore
Goffi <goffi@goffi.org>
parents: 140
diff changeset
27 *.un~
4081
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
28 .vim
84f6bee6440d installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents: 3877
diff changeset
29 .vscode