Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !348

Extending Internal API using *_slap_interface_workflow

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Rafael Monnerat requested to merge rafael/slapos.core:slap-interface-workflow into master Nov 25, 2021
  • Overview 19
  • Commits 26
  • Pipelines 0
  • Changes 164

Extending Internal API using *_slap_interface_workflow

This MR aims to introduce and extend the internal API with the support for manage:

  • Project
  • Organisation
  • Site (also Organisation)
  • Tokens
  • Computer Network

So via the introductions of workflows we included the following methods:

  • Project.approveRegistration()
  • Project.leaveProject()
  • Project.acceptInvitation()
  • Organisation.approveRegistration()
  • Organisation.leaveOrganisation()
  • Organisation.acceptInvitation()
  • Person.requestProject(project_title)
  • Person.requestOrganisation(organisation_title)
  • Person.requestSite(organisation_title)
  • Person.requestToken(request_url)
  • Person.requestNetwork(network_title)
  • ComputeNote.requestTransfer(...)
  • InstanceTree.requestTransfer(...)
  • ComputerNetwork.approveRegistration()
  • ComputerNetwork.requestTransfer(...)

This API with minor exceptions, don't replaces the way the Hateoas/JIO website interacts with ERP5, so the original scripts are kept just changed to call internal APIs.

Some rework lead to minor clean ups and security updates, but nothing to change the overall behavior of the site.

Edited Dec 13, 2021 by Rafael Monnerat
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: slap-interface-workflow
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7