https://github.com/SoftwareHeritage/swh-model

sort by:
Revision Author Date Message Commit Date
3cf95d7 Updated debian changelog for version 0.5.0 08 July 2020, 15:23:52 UTC
df6ebf6 Update upstream source from tag 'debian/upstream/0.5.0' Update to upstream version '0.5.0' with Debian dir c111ef899fc4093736b1efc9323461869db09568 08 July 2020, 15:23:51 UTC
b98ed48 New upstream version 0.5.0 08 July 2020, 15:23:50 UTC
0547a51 identifiers: Add to_dict method to SWHID class 08 July 2020, 14:18:40 UTC
52ef52e Use attr instead of NamedTuple to generate SWHID. As NamedTuple inherits from tuple, msgpack serializes it like a tuple, which makes it indistinguishable from a tuple when deserializing, which is an issue for the RPC API. 07 July 2020, 15:34:41 UTC
bea256e Make SWHID immutable and hashable. 07 July 2020, 13:12:44 UTC
06837d5 Implement ImmutableDict.__hash__. 07 July 2020, 13:10:53 UTC
c4dad17 Allow passing an ImmutableDict as argument to ImmutableDict's constructor. It allows easy conversion of Union[ImmutableDict, Dict] to ImmutableDict. 07 July 2020, 13:04:54 UTC
9e475a7 Implement to_dict and from_dict for metadata-related classes. 07 July 2020, 11:31:05 UTC
af0dd1a Add a new ImmutableDict class, and use it in model objects. So they are truly immutable now. 07 July 2020, 11:31:05 UTC
78fc5f7 Add raw metadata to the model. This will allow swh-storage to have a signature for *_metadata_add that is consistent with other *_add endpoints. 07 July 2020, 09:48:19 UTC
fb1291d Updated debian changelog for version 0.4.0 06 July 2020, 12:16:52 UTC
29d3869 Update upstream source from tag 'debian/upstream/0.4.0' Update to upstream version '0.4.0' with Debian dir 893a7b17ab26f448f7c269752543c1775b072045 06 July 2020, 12:16:51 UTC
0197527 New upstream version 0.4.0 06 July 2020, 12:16:50 UTC
a7d9aca Extract the extra_headers from metadata on the Revision model class Add a new extra_headers attribute on Revision and use it for computing the revision's id instead of extract it from the metadata field. Only accept (bytes, bytes) as extra_header. Add a post init hook to Revision to initialize this new attribute from given metadata, if any, for bw compat. Also amend the revision_d hyptothesis strategy to generate extra_headers. 06 July 2020, 09:57:55 UTC
e7c7882 Updated debian changelog for version 0.3.8 03 July 2020, 14:10:51 UTC
03c7ff6 Update upstream source from tag 'debian/upstream/0.3.8' Update to upstream version '0.3.8' with Debian dir 6542410c69982a1fbb034862d80255f390caa5b1 03 July 2020, 14:10:50 UTC
b85ee8b New upstream version 0.3.8 03 July 2020, 14:10:49 UTC
2f2e9bd debian/control: Add python3-deprecated build dependency 03 July 2020, 14:05:59 UTC
1ff0516 identifiers: Rename some functions and types related to SWHIDs When Software Heritage persistent identifiers were introduced, they were not yet abbreviated as SWHIDs. Now that abbreviation is growing adoption, rename some functions and types in swh.model.identifiers for consistency: - PersistentId -> SWHID - persistent_identifier -> swhid - parse_persistent_identifier -> parse_swhid Backward compatibility with previous naming is maintained but deprecation warnings are introduced to encourage the use of the new names. Numerous variables in swh.model codebase have also been renamed accordingly. Also rework and improve documentation. 03 July 2020, 12:11:32 UTC
052c9b5 Updated debian changelog for version 0.3.7 02 July 2020, 13:17:32 UTC
877d570 Update upstream source from tag 'debian/upstream/0.3.7' Update to upstream version '0.3.7' with Debian dir 4b528677b5793bfff8d84d77383fe7aeffb13664 02 July 2020, 13:17:31 UTC
3641b4f New upstream version 0.3.7 02 July 2020, 13:17:30 UTC
8863b5c Refactor common loader behavior within from_disk.iter_directory 02 July 2020, 13:09:50 UTC
363b165 Unify object_type some more within the merkle and from_disk modules 02 July 2020, 13:03:04 UTC
a123664 Updated debian changelog for version 0.3.6 01 July 2020, 13:48:43 UTC
bf23470 Update upstream source from tag 'debian/upstream/0.3.6' Update to upstream version '0.3.6' with Debian dir b0b3790969b9e2899982cecf19527c203935ecfb 01 July 2020, 13:48:42 UTC
f44f3d3 New upstream version 0.3.6 01 July 2020, 13:48:42 UTC
6c8aba7 d/changelog: Bump new version 30 June 2020, 10:41:43 UTC
c73d19f d/control: Add missing dependency 30 June 2020, 10:27:13 UTC
83ed584 Updated debian changelog for version 0.3.5 30 June 2020, 09:31:43 UTC
7adce06 Update upstream source from tag 'debian/upstream/0.3.5' Update to upstream version '0.3.5' with Debian dir 94038e94a4a7870e94ddd3c21607eb5765f55955 30 June 2020, 09:31:43 UTC
bf5fff2 New upstream version 0.3.5 30 June 2020, 09:31:42 UTC
40a40f5 model.OriginVisit: Drop obsolete fields Related to T2310 29 June 2020, 09:08:06 UTC
e632abe Tag model entities with their "object_type" this aims at preventing constant usage of isinstance() based dispatch code when writing generic code handling model entities. For example, the "object_type" argument of JournalWriter.write_addition() has become superflous now we only pass model entities, etc. This idea comes olasd's reading of mypy doc: https://mypy.readthedocs.io/en/latest/literal_types.html#tagged-unions This comes with a refactoring of from_dict.DiskBackedContent to make it *not* inherit from model.Content: object_type being Final, it cannot be overloaded. 24 June 2020, 15:39:02 UTC
7476df0 Updated debian changelog for version 0.3.4 24 June 2020, 08:47:12 UTC
bf605ea Update upstream source from tag 'debian/upstream/0.3.4' Update to upstream version '0.3.4' with Debian dir e334e0831ed8569265e5d10f4d9516a48cf060af 24 June 2020, 08:47:11 UTC
619f595 New upstream version 0.3.4 24 June 2020, 08:47:10 UTC
661b7c2 OriginVisitStatus: Allow "created" status Related to T2310 24 June 2020, 07:16:50 UTC
636f8c2 model.OriginVisit: Make obsolete fields optional Related to T2310 23 June 2020, 15:29:53 UTC
f349bdc swh.model.model.OriginVisit: Drop the dateutil.parser.parse use 22 June 2020, 08:14:30 UTC
210be0a Updated debian changelog for version 0.3.3 17 June 2020, 07:40:51 UTC
c18be24 Update upstream source from tag 'debian/upstream/0.3.3' Update to upstream version '0.3.3' with Debian dir 9db77e99e1d97178ca2fa7289a0004b6147bdb0f 17 June 2020, 07:40:50 UTC
60b9fa0 New upstream version 0.3.3 17 June 2020, 07:40:49 UTC
ba0c4e1 model.hypothesis_strategies: Make metadata always none on origin_visit This is not used. This is broken storage wise (origin-visit-add does not deal correctly with it and it so happens there is no test around it). And finally, this will soon go away with T2310. 16 June 2020, 17:10:53 UTC
c5b0fe9 Updated debian changelog for version 0.3.2 16 June 2020, 08:45:55 UTC
2804a1d Update upstream source from tag 'debian/upstream/0.3.2' Update to upstream version '0.3.2' with Debian dir dab2ec29758546752e72a90100424daa98318438 16 June 2020, 08:45:54 UTC
809c7c1 New upstream version 0.3.2 16 June 2020, 08:45:54 UTC
f723eb1 Fix the model: Revision.message can be None And adapt the revisions_d() strategy accordingly. 16 June 2020, 08:35:02 UTC
b70b281 Fix message generation in hypothesis strategy releases_d() This can be None, according to the model. 16 June 2020, 08:35:02 UTC
5c5f34f Use the optional() strategy instead of one_of(none(), ...) when possible for the sake of consistency. 16 June 2020, 08:34:54 UTC
7f408d3 Updated debian changelog for version 0.3.1 15 June 2020, 07:52:09 UTC
11cf649 New upstream version 0.3.1 15 June 2020, 07:52:08 UTC
7d81311 Update upstream source from tag 'debian/upstream/0.3.1' Update to upstream version '0.3.1' with Debian dir c220a7827eb7e16e523e5ae2dfd279c01e471c4a 15 June 2020, 07:52:08 UTC
a427e18 Allow negative_utc to be None in normalize_timestamp() thus in TimestampWithTimezone.from_dict(). This is needed to help consuming existing (invalid) messages from kafka. Warning: tests added in this revision do not cover the whole normalize_timestamp() function. 15 June 2020, 07:40:43 UTC
e1e3321 Updated debian changelog for version 0.3.0 03 June 2020, 10:04:35 UTC
5a96bf0 Update upstream source from tag 'debian/upstream/0.3.0' Update to upstream version '0.3.0' with Debian dir debf07387de123cf96eaad3d7d77bbfac925a2f7 03 June 2020, 10:04:35 UTC
86e049e New upstream version 0.3.0 03 June 2020, 10:04:34 UTC
4711761 Updated debian changelog for version 0.2.2 03 June 2020, 09:33:46 UTC
56b22a4 Update upstream source from tag 'debian/upstream/0.2.2' Update to upstream version '0.2.2' with Debian dir 51aef6acf2244bde6600fde8bbf280e818def7ee 03 June 2020, 09:33:45 UTC
98d0884 New upstream version 0.2.2 03 June 2020, 09:33:44 UTC
3d9f694 Use Tuple instead of List in model declarations. This is a step forward having model objects, declared as frozen, immutable. This requires attrs_strict >= 0.0.7. 03 June 2020, 09:32:05 UTC
340656d Fix origin_visit hypothesis strategies the visit attribute is expected to be strictly positive. 03 June 2020, 09:23:00 UTC
e202563 Updated debian changelog for version 0.2.1 29 May 2020, 15:43:45 UTC
d388855 Update upstream source from tag 'debian/upstream/0.2.1' Update to upstream version '0.2.1' with Debian dir 4b98cf559c2be2a001dbedc9894b2431ce1b9373 29 May 2020, 15:43:44 UTC
167e23c New upstream version 0.2.1 29 May 2020, 15:43:43 UTC
a95646f Exclude [Skipped]Content.ctime from hash/eq computation this attribute is not an intrinsic property of a content object, so it should not be used when comparing or hashing. 29 May 2020, 15:14:31 UTC
99fc689 Updated debian changelog for version 0.2.0 25 May 2020, 08:11:07 UTC
00b195a Update upstream source from tag 'debian/upstream/0.2.0' Update to upstream version '0.2.0' with Debian dir 8fcf4e24544576e706428aa2483d4697a23e8b3b 25 May 2020, 08:11:06 UTC
b2b91dc New upstream version 0.2.0 25 May 2020, 08:11:06 UTC
29312df Add support for model object anonymization Simply add a BaseModel.anonymize() method. Default implementation returns None, meaning the object is not anonymizable. For Person, the method returns a Person whith hashed fullname (and unset name and email). For Revision and Release, the method returns an anonymized version of the object, i.e. with instance of Person replaced by anonymized ones. 20 May 2020, 14:28:01 UTC
cce3036 SWHID spec: fix typos ";;" which made some examples fail 14 May 2020, 13:47:46 UTC
a752554 Updated debian changelog for version 0.1.1 05 May 2020, 12:45:37 UTC
d6c330a New upstream version 0.1.1 05 May 2020, 12:45:36 UTC
e4fb052 Update upstream source from tag 'debian/upstream/0.1.1' Update to upstream version '0.1.1' with Debian dir 8efde0d89250d5406f5e69344f46ff5813be3e6f 05 May 2020, 12:45:36 UTC
091498e Make aware_datetimes() generate only ISO8601-encodable datetimes. 05 May 2020, 10:03:39 UTC
a5bfa5e Updated debian changelog for version 0.1.0 30 April 2020, 20:31:00 UTC
7f87c08 Update upstream source from tag 'debian/upstream/0.1.0' Update to upstream version '0.1.0' with Debian dir 89021e5f13fb098dd38980f92c2fd2b3c6a60948 30 April 2020, 20:30:59 UTC
994d980 New upstream version 0.1.0 30 April 2020, 20:30:59 UTC
9f5d266 SWHID spec: full reread Reviewers: rdicosmo Reviewed By: rdicosmo Differential Revision: https://forge.softwareheritage.org/D3108 30 April 2020, 17:06:41 UTC
b80b135 setup.py: add documentation link 29 April 2020, 16:32:31 UTC
08fd228 hypothesis_strategies: Generate aware datetimes instead of naive ones. Production should only use aware datetimes. 29 April 2020, 11:02:22 UTC
0fad886 doc: check-in IANA registration template for the "swh" URI scheme Closes T1003 29 April 2020, 07:34:30 UTC
8367eec Restructure SWHID documentation in preparation for T2385 - merge grammars into a single one - explain better that SWHIDs are made up of core identifier + qualifiers - separate qualifier into context and fragment onex - add reference to swh-identify 28 April 2020, 18:47:50 UTC
f70f498 Updated debian changelog for version 0.0.69 28 April 2020, 14:10:36 UTC
0580702 Update upstream source from tag 'debian/upstream/0.0.69' Update to upstream version '0.0.69' with Debian dir 064f9ef78e68b2eaa9457e3662088fa13d09be3d 28 April 2020, 14:10:35 UTC
46b0de5 New upstream version 0.0.69 28 April 2020, 14:10:34 UTC
f97d216 SWHID spec: bump version to 1.3 and add last modified date 28 April 2020, 14:04:42 UTC
d230938 SWHID spec: make SWHIDs plural where needed 28 April 2020, 14:04:19 UTC
1379385 SWHID spec: simplify and generalize escaping requirements 27 April 2020, 13:17:50 UTC
3ef4843 SWHID spec: add support for IRI Closes T2379 26 April 2020, 14:44:51 UTC
56cf99a SWHID: deal with escaping in origin qualifiers 24 April 2020, 14:56:47 UTC
3f38808 SWHID doc: improve wording of intrinsic parts v. the rest 24 April 2020, 08:11:45 UTC
f360e9d Updated debian changelog for version 0.0.68 21 April 2020, 14:28:39 UTC
3de37fa Update upstream source from tag 'debian/upstream/0.0.68' Update to upstream version '0.0.68' with Debian dir 49e76208808056a7b23a774ed785a299c53e8ed4 21 April 2020, 14:28:38 UTC
968a989 New upstream version 0.0.68 21 April 2020, 14:28:37 UTC
1037e88 Add a split_content argument to object_dicts() and objects() strategies Make it possible to generate Content and SkippedContent under different object types (namely "content" and "skipped_content"). Default to False to keep backward compat. 21 April 2020, 12:49:14 UTC
ebd3807 Add a blacklist_types argument to object_dicts() and objects() hypothesis strategies so one can choose not to generate some of the object types. Blacklist "origin_visit_status" by default to prevent breaking dependent packages' tests. 21 April 2020, 12:48:33 UTC
bfba3bd Fix hypothesis strategies alias for origin visit update objects 20 April 2020, 15:37:56 UTC
e5227e2 setup: Update the minimum required runtime python3 version Related to T2367 20 April 2020, 15:37:56 UTC
back to top