-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrates invenio-cern-sync and jobs
- closes #196
- Loading branch information
Showing
19 changed files
with
311 additions
and
1,426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
site/cds_rdm/assets/semantic-ui/js/cds_rdm/src/records/detail.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2023 CERN. | ||
# | ||
# Invenio is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Jobs.""" | ||
|
||
from invenio_jobs.jobs import JobType | ||
|
||
from .tasks import sync_groups, sync_users | ||
|
||
|
||
class SyncUsers(JobType): | ||
"""Sync users with CERN database.""" | ||
|
||
id = "sync_cern_users" | ||
title = "Sync CERN users" | ||
description = "Sync CERN users with the AuthZ service" | ||
|
||
task = sync_users | ||
|
||
@classmethod | ||
def build_task_arguments(cls, _, since=None, **kwargs): | ||
"""Build task arguments.""" | ||
return {"since": since} | ||
|
||
|
||
class SyncGroups(JobType): | ||
"""Sync groups with CERN database.""" | ||
|
||
id = "sync_cern_groups" | ||
title = "Sync CERN groups" | ||
description = "Sync CERN groups with the AuthZ service" | ||
|
||
task = sync_groups | ||
|
||
@classmethod | ||
def build_task_arguments(cls, _, since=None, **kwargs): | ||
"""Build task arguments.""" | ||
return {"since": since} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.