-
- Downloads
storage: Allow to filter out branches by prefix when counting them
Add an optional branch_name_exclude_prefix parameter to the snapshot_count_branches method of the Storage interface. It enables to filter out branches whose name starts with a given prefix when counting. The purpose is to get accurate counters in swh-web as pull request branches will be filtered out by default. Related to T2782
Showing
- sql/upgrades/170.sql 19 additions, 0 deletionssql/upgrades/170.sql
- swh/storage/cassandra/cql.py 54 additions, 10 deletionsswh/storage/cassandra/cql.py
- swh/storage/cassandra/storage.py 5 additions, 2 deletionsswh/storage/cassandra/storage.py
- swh/storage/in_memory.py 7 additions, 1 deletionswh/storage/in_memory.py
- swh/storage/interface.py 3 additions, 1 deletionswh/storage/interface.py
- swh/storage/postgresql/db.py 6 additions, 4 deletionsswh/storage/postgresql/db.py
- swh/storage/postgresql/storage.py 13 additions, 2 deletionsswh/storage/postgresql/storage.py
- swh/storage/sql/30-schema.sql 1 addition, 1 deletionswh/storage/sql/30-schema.sql
- swh/storage/sql/40-funcs.sql 4 additions, 2 deletionsswh/storage/sql/40-funcs.sql
- swh/storage/tests/storage_tests.py 51 additions, 0 deletionsswh/storage/tests/storage_tests.py
Loading
-
Some references in the commit message have been migrated:
- T2782 is now swh-web#2782 (closed)
-
mentioned in merge request !659 (closed)
-
mentioned in merge request !660 (closed)
Please register or sign in to comment