In D3177#77360, @vlorentz wrote:We wouldn't need that if pytest had an equivalent for assertCountEqual :/
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
May 26 2020
May 26 2020
May 25 2020
May 25 2020
improve the commit message
In D3177#77354, @douardda wrote:In D3177#77353, @douardda wrote:In D3177#77343, @vlorentz wrote:What is the motivation for this?
Be able to create sets of revisions.
Also, having frozen objects that are modifiable seems a bit fuzzy to me, to say the least.
In D3177#77353, @douardda wrote:In D3177#77343, @vlorentz wrote:What is the motivation for this?
Be able to create sets of revisions.
In D3177#77343, @vlorentz wrote:What is the motivation for this?
Forgot to update hypothesis strategies also.
Bump dep on attrs_strict >= 0.0.7
douardda committed rDJNL3cac9cffe243: Add support for a priviledged "channel" of topics for non-anonymized objects (authored by douardda).
Add support for a priviledged "channel" of topics for non-anonymized objects
douardda updated the diff for D3172: Add support for a priviledged "channel" of topics for non-anonymized objects.
typo
douardda updated the diff for D3172: Add support for a priviledged "channel" of topics for non-anonymized objects.
bump dep on swh-model to 0.2
May 20 2020
May 20 2020
douardda committed rDMOD29312dff6d96: Add support for model object anonymization (authored by douardda).
Add support for model object anonymization
use ModelType instead of T for type annotation
douardda updated the diff for D3172: Add support for a priviledged "channel" of topics for non-anonymized objects.
typos, rename a couple of tests, and better comments
properly annotate BaseModel.anonymize()
douardda added inline comments to D3172: Add support for a priviledged "channel" of topics for non-anonymized objects.
Typos + comments/docstrings + hash on the fullname in Person.anonymize()
In D3171#77185, @vlorentz wrote:Shouldn't we make anonymized objects error when their compute_hash() method is called?
douardda added inline comments to D3172: Add support for a priviledged "channel" of topics for non-anonymized objects.
May 18 2020
May 18 2020
douardda updated the diff for D3160: Add support for a priviledged "channel" of topics for non-anonymized objects.
typo
May 15 2020
May 15 2020
douardda committed rDSTO87f7bee6935b: journal: add a skipped_content topic dedicated to SkippedContent objects (authored by douardda).
journal: add a skipped_content topic dedicated to SkippedContent objects
same, but with the actual chuck
assert object_type is unset is the class has subclasses
add the test suggested by olasd
In D3152#76660, @ardumont wrote:Looks good.
Do you plan to add the test olasd mentioned? [1]
We should also have a test checking that no two objects types have the same object_type value. This test should check all BaseModel subclasses (instead of just stuff generated by strategies.objects).
[1] D3152#76613
so be it :-)
rename tag as object_type and use a Final instead of a Literal.
May 14 2020
May 14 2020
In D3152#76561, @vlorentz wrote:And I'm not a big fan of the name. What about object_type, as we already use this name in other places?
May 13 2020
May 13 2020
douardda committed rDJNL89cd8f7bea87: Fix test data: only create aware datetime objects (authored by douardda).
Fix test data: only create aware datetime objects
douardda committed rDJNLbad6e3d67d50: Move OBJECT_TYPES global variable to tests/journal_data.py (authored by douardda).
Move OBJECT_TYPES global variable to tests/journal_data.py
typos (thx ardumont)
In D3151#76517, @ardumont wrote:Remove global var and put that definition local to its use
In D3149#76484, @vlorentz wrote:What about using a different prefix instead of adding a suffix, eg. swh.journal.anonymized_objects.?
It would require less special handling/configuration
In D3149#76430, @ardumont wrote:I'm ok, but for one question.
Shouldn't this also accept no : in the object type (the prior behavior if i understood correctly)?
In D3149#76474, @douardda wrote:In D3149#76428, @vlorentz wrote:Did we already decide anonymized topics should use this name scheme?
Nope, this is a base for discussion :-)
In D3149#76428, @vlorentz wrote:Did we already decide anonymized topics should use this name scheme?
douardda updated the diff for D3140: journal: add a skipped_content topic dedicated to SkippedContent objects.
typos (thx ardumont)
Fix test_cli for swh.journal 0.1.0
May 12 2020
May 12 2020
douardda committed rDSTO306aa69b26d0: Add missing return annotations on JournalWriter methods (authored by douardda).
Add missing return annotations on JournalWriter methods
douardda committed rDSTOb04cb8f92c04: Improve a bit the exception message of JournalWriter.content_update (authored by douardda).
Improve a bit the exception message of JournalWriter.content_update
douardda committed rDSTO46f9a7a15113: Refactor the JournalWriter class to normalize its methods (authored by douardda).
Refactor the JournalWriter class to normalize its methods
douardda committed rDSTOe64944bc53c9: tests: fix test_replay; do only use aware datetime objects (authored by douardda).
tests: fix test_replay; do only use aware datetime objects
In D3137#76220, @vlorentz wrote:we usually define a now() function at the beginning of modules to return an aware datetime, but that's ok too
May 11 2020
May 11 2020
May 7 2020
May 7 2020
douardda committed rDSTO68eb6b3b60a1: Update test_kafka_writer for swh.journal 0.1.0 (authored by douardda).
Update test_kafka_writer for swh.journal 0.1.0
douardda committed rDJNL25339889f89e: pytest_plugin: use the object_types fixture in test_config (authored by douardda).
pytest_plugin: use the object_types fixture in test_config
douardda committed rDJNL381ceafe5b2d: pytest_plugin: modify the kafka_server fixture so topics are created beforehand (authored by douardda).
pytest_plugin: modify the kafka_server fixture so topics are created beforehand
douardda committed rDJNL957333752e41: pytest_plugin: remove '.swh.journal.objects' from test_config fixture (authored by douardda).
pytest_plugin: remove '.swh.journal.objects' from test_config fixture
douardda committed rDJNL302050a6254c: test: replace usage of a strategy .example() by a hardcoded value (authored by douardda).
test: replace usage of a strategy .example() by a hardcoded value
douardda committed rDJNL3e8e7dff4ec5: pytest_plugin: do not crash if the list of consumed messages is empty (authored by douardda).
pytest_plugin: do not crash if the list of consumed messages is empty
douardda committed rDJNL84e32e6a90e4: pytest_plugin: improve error message in consume_messages() helper function (authored by douardda).
pytest_plugin: improve error message in consume_messages() helper function
douardda committed rDJNL8ea0de47a79c: client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection (authored by douardda).
client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection
several typos reported by anlambert
douardda updated the diff for D3126: client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection.
typo in commit message
In D3130#76039, @anlambert wrote:Looks good to me. Just one nitpick, there is some typos in commit messages:
- instanciation -> instantiation
- instanciating -> instantiating
May 6 2020
May 6 2020
douardda updated the diff for D3126: client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection.
fix a few typos
May 5 2020
May 5 2020
douardda updated the diff for D3126: client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection.
few changes according to comments on IRC