- May 15, 2024
-
-
Pierre-Yves David authored
Instead of having multiple class and `object_type` value, we just adds a few lines in the main `model.Content` class to retrieved data on demand. The `with_data` logic already existed there anyway. This will avoid having from_disk extending the model from the outside.
-
- May 14, 2024
-
-
Pierre-Yves David authored
This is part of a wider effort to differentiate the various type of "object_type" attribute around the model code base.
-
Pierre-Yves David authored
This requires cleaning various item along the ways. Which is probably an added benefit. Especially, mypy now consider BaseModel to hold a object_type attribute.
-
Pierre-Yves David authored
Check inline comment for details.
-
- Apr 24, 2024
-
-
vlorentz authored
Currently the only limit is "enforced" by PostgreSQL. This makes sure that origins created after we switch to Cassandra as the primary storage remain compatible with a PostgreSQL-based storage.
-
- Mar 29, 2024
-
-
David Douard authored
-
- Mar 26, 2024
-
-
vlorentz authored
-
- Feb 29, 2024
-
-
Franck Bret authored
Add an optional progress callback to `from_disk` method. It can returns the number of computed entries for each top entries traversed. This is useful for CLI, in particular to display progress information for SWH Scanner.
-
- Feb 20, 2024
- Feb 05, 2024
-
-
Antoine Lambert authored
Related to swh/meta#5075.
-
- Jan 09, 2024
-
-
Pierre-Yves David authored
Right now, the discovery process offered by `filter_known_objects` returns all results after the discovery is complete. The new callback provides a way to get information "in real time" which is useful for at least a couple of planned use case in the SWH scanner: - displaying progress information while processing - update a graphical UI in real time. This simple callback fits this need without too much troubles. For some reason, mypy complained about the existing type hint in this file for unclear reason. So I fixed them.
-
Pierre-Yves David authored
The web Client is no longer using async so we no longer needs it.
-
- Dec 05, 2023
-
-
David Douard authored
-
- Dec 04, 2023
-
-
David Douard authored
-
David Douard authored
-
- Dec 03, 2023
-
-
David Douard authored
-
- Nov 29, 2023
-
-
Antoine Lambert authored
When building package documentation outside tox by calling make in the docs directory, the include of Makefile.sphinx inside the docs Makefile was failing as its relative path was invalid. So adapt this relative path according if the SWH_PACKAGE_DOC_TOX_BUILD environment variable is set or not.
-
- Nov 28, 2023
-
-
David Douard authored
-
David Douard authored
-
- Nov 16, 2023
-
-
David Douard authored
Convert README from markdown to ReST to make it embeddable in docs/index.rst
-
- Nov 15, 2023
-
-
vlorentz authored
instead of a mix-in class. A future commit will add a method implemented by both with different signatures that mypy cannot unify yet.
-
- Nov 14, 2023
-
-
Nicolas Dandrimont authored
-
Raphaël Gomès authored
`dir_filter` only filters directories. `swh-scanner` needs to accurately filter out ignored files before making expensive requests to the web API. We introduce a more general `path_filter` that allows us to differentiate between files and folders. `dir_filter` is now deprecated and will be removed once the remaining users in other packages are migrated over to the new API. `accept_all_directories` is also deprecated, because it only implies accepting *directories* even though its behavior also accepts non-directory entries when used with `path_filter`.
-
- Sep 25, 2023
-
-
Antoine Lambert authored
Use a list instead of a tuple to keep mypy happy with latest hypothesis version.
-
- Aug 29, 2023
-
-
As with other fields containing sha1_git values, display hexadecimal representation of parent revision ids.
-
- Aug 21, 2023
- Jul 12, 2023
-
-
Nicolas Dandrimont authored
This separate package was introduced recently and is needed for our CLIs to pass type checking.
-
- Jun 14, 2023
-
-
Nicolas Dandrimont authored
This allows using the "system" tox, if it's recent enough, instead of always provisioning an internal .tox venv with tox 4.
-
Nicolas Dandrimont authored
Instead of going back to py3, pass through the environment name, so that it can be called with an arbitrary interpreter version.
-
Nicolas Dandrimont authored
When parsing the configuration, tox would complain about the unfollowed line continuation (which is what happens when the testenv was qualified with neither full nor minimal). Moving {posargs} to be unqualified allows the line continuation character to always have something behind it.
-
- Mar 16, 2023
-
-
Jérémy Bobbio (Lunar) authored
This adds several helper methods returning SWHIDs to model objects, namely: - SkippedContent.swhid() - DirectoryEntry.swhid() - SnapshotBranch.swhid() - Release.target_swhid() - Revision.directory_swhid() and Release.parent_swhids() - OriginVisitStatus.origin_swhid() and OriginVisitStatus.snapshot_swhid()
-
- Feb 17, 2023
-
-
Antoine Lambert authored
Better using latest mypy release.
-
Antoine Lambert authored
Related to swh/meta#4960
-
- Feb 16, 2023
-
-
-
Jérémy Bobbio (Lunar) authored
Related to swh/meta#4959
-
- Feb 13, 2023
-
-
Antoine Lambert authored
Previously when looking up data by key in an ImmutableDict, the inner tuple storing keys and values was iterated until finding the requested key. This is not really efficient when the ImmutableDict contains a lot of entries, typically for an origin snapshot containing a lot of branches. So use an inner dictionary to speedup look up by key operations and improve loader performances.
-
- Feb 02, 2023
-
-
Antoine Lambert authored
This fixes python 3.7 support due to poetry, a dependency of isort, that removed support for that Python version in a recent release.
-
- Dec 19, 2022
-
-
Antoine Lambert authored
In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Also include them the proper sphinx way. Related to T4496
-
- Dec 15, 2022
-
-
Antoine Lambert authored
There were two issues that was preventing to browse some SWHIDs given as examples in that documentation: - Some sphinx links were broken in rDMODe1c3fe80731226618616117dfd67a95f3d365645 - A SWHID with ';' in its path qualifier was correctly percent escaped but when used as URL argument an extra percent escaping is required as HTTP server will unescape URL arguments and thus break SWHID percent escaping. Closes T4721
-
- Dec 05, 2022
-
-
Antoine Lambert authored
from_disk.Content object created for a symlink was missing path info so ensure to add it for consistency with from_disk.Content object created for a regular file.
-