Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-deposit
Commits
a12fdd2d
Commit
a12fdd2d
authored
10 months ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
model: adapt to the renaming of model.TargetType to model.SnapshotTargetType
parent
c61cb817
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!433
model: adapt to the renaming of model.TargetType to model.SnapshotTargetType
Pipeline
#8861
passed
9 months ago
Stage: external
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements-swh-server.txt
+1
-1
1 addition, 1 deletion
requirements-swh-server.txt
requirements-swh.txt
+1
-1
1 addition, 1 deletion
requirements-swh.txt
swh/deposit/tests/loader/common.py
+2
-2
2 additions, 2 deletions
swh/deposit/tests/loader/common.py
with
4 additions
and
4 deletions
requirements-swh-server.txt
+
1
−
1
View file @
a12fdd2d
swh.core[http] >= 0.4
swh.loader.core >= 0.0.71
swh.scheduler >= 0.7.0
swh.model >=
0.
3.
8
swh.model >=
6.1
3.
0
swh.auth[django] >= 0.5.3
swh.storage >= 0.28.0
This diff is collapsed.
Click to expand it.
requirements-swh.txt
+
1
−
1
View file @
a12fdd2d
...
...
@@ -2,4 +2,4 @@
# Server dependencies go to requirements-swh-server.txt instead.
swh.core[http] >= 3.0.0
swh.model >=
4.4
.0
swh.model >=
6.13
.0
This diff is collapsed.
Click to expand it.
swh/deposit/tests/loader/common.py
+
2
−
2
View file @
a12fdd2d
...
...
@@ -8,7 +8,7 @@ from typing import Dict, Optional
from
swh.deposit.client
import
PrivateApiDepositClient
from
swh.model.hashutil
import
hash_to_bytes
,
hash_to_hex
from
swh.model.model
import
SnapshotBranch
,
TargetType
from
swh.model.model
import
SnapshotBranch
,
Snapshot
TargetType
from
swh.storage.algos.snapshot
import
snapshot_get_all_branches
CLIENT_TEST_CONFIG
=
{
...
...
@@ -92,7 +92,7 @@ def decode_target(branch: Optional[SnapshotBranch]) -> Optional[Dict]:
return
None
target_type
=
branch
.
target_type
if
target_type
==
TargetType
.
ALIAS
:
if
target_type
==
Snapshot
TargetType
.
ALIAS
:
decoded_target
=
branch
.
target
.
decode
(
"
utf-8
"
)
else
:
decoded_target
=
hash_to_hex
(
branch
.
target
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment