Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-vault
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Jérémy Bobbio (Lunar)
swh-vault
Commits
6188be58
Commit
6188be58
authored
5 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
api: Use RPC* classes instead of deprecated SWHRemoteAPI
parent
3d06845d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements-swh.txt
+1
-1
1 addition, 1 deletion
requirements-swh.txt
swh/vault/api/client.py
+2
-2
2 additions, 2 deletions
swh/vault/api/client.py
swh/vault/api/server.py
+2
-2
2 additions, 2 deletions
swh/vault/api/server.py
with
5 additions
and
5 deletions
requirements-swh.txt
+
1
−
1
View file @
6188be58
swh.core[db,http] >= 0.0.6
1
swh.core[db,http] >= 0.0.6
5
swh.model >= 0.0.27
swh.objstorage >= 0.0.17
swh.scheduler >= 0.0.39
...
...
This diff is collapsed.
Click to expand it.
swh/vault/api/client.py
+
2
−
2
View file @
6188be58
...
...
@@ -4,10 +4,10 @@
# See top-level LICENSE file for more information
from
swh.model
import
hashutil
from
swh.core.api
import
SWHRemoteAPI
from
swh.core.api
import
RPCClient
class
RemoteVaultClient
(
SWHRemoteAPI
):
class
RemoteVaultClient
(
RPCClient
):
"""
Client to the Software Heritage vault cache.
"""
# Web API endpoints
...
...
This diff is collapsed.
Click to expand it.
swh/vault/api/server.py
+
2
−
2
View file @
6188be58
...
...
@@ -10,7 +10,7 @@ import collections
from
swh.core
import
config
from
swh.core.api.asynchronous
import
(
SWHRemoteAPI
,
RPCServerApp
,
encode_data_server
as
encode_data
,
decode_request
,
)
...
...
@@ -177,7 +177,7 @@ def batch_progress(request):
# Web server
def
make_app
(
backend
,
**
kwargs
):
app
=
SWHRemoteAPI
(
**
kwargs
)
app
=
RPCServerApp
(
**
kwargs
)
app
.
router
.
add_route
(
'
GET
'
,
'
/
'
,
index
)
# Endpoints used by the web API
...
...
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