Skip to content

magenta-aps/os2mo-rollekatalog

Repository files navigation

OS2mo-rollekatalog

OS2mo integration for OS2Rollekatalog.

Rollekatalog API documentation: https://htk.rollekatalog.dk/download/api.html.

Usage

docker-compose up -d

Configuration is done through environment variables. Available options can be seen in [os2mo_rollekatalog/config.py]. Complex variables such as dict or lists can be given as JSON strings, as specified by Pydantic's settings parser.

Development

In development, Rollekatalog is started on http://localhost:8090 and SimpleSAMLphp on http://localhost:8050. The dev environment is configured for OS2mos "Kolding" test dataset. In there, the user Ludvig is expected to be syncronised to Rollekatalog. Run ./dev-environment/devtool to make the needed changes to his IT-users, force sync of Ludvig and make him administrator in Rollekatalog.

Full synchronization

When first deployed or when a "full" sync is needed for other reasons (such as a changed configuration), the following GraphQL query can be submitted to OS2mo:

mutation RefreshAll($exchange: "os2mo_rollekatalog", $root_uuid: UUID!) {
  employee_refresh(exchange: $exchange) {
    objects
  }
  org_unit_refresh(
    exchange: $exchange
    filter: { ancestor: { uuids: [$root_uuid] } }
  ) {
    objects
  }
  class_refresh(
    exchange: $exchange
    limit: 1
    filter: { facet: { user_keys: "engagement_job_function" } }
  ) {
    objects
  }
}

Versioning

This project uses Semantic Versioning with the following strategy:

  • MAJOR: Incompatible API changes.
  • MINOR: Backwards-compatible updates and functionality.
  • PATCH: Backwards-compatible bug fixes.

Authors

Magenta ApS https://magenta.dk

License

This project uses REUSE for licensing. All licenses can be found in the LICENSES folder of the project.

About

OS2mo integration for OS2rollekatalog

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages