/syfoveileder

Syfoveileder is a microservice offering data relating to veiledere, which ones belong to an enhet as well as names for veiledere.

Primary LanguageKotlinMIT LicenseMIT

Syfoveileder

About Syfoveileder

Syfoveileder is a Ktor application written in Kotlin. Its main job is to be a microservice offering data relating to veiledere. So far this means a list of veileder names with access to an enhet.

Dependencies

The data quality of veileder in Azure AD is not good enough for veileder to enhet relations. It contains employee relations to an enhet, but not access rights to an enhet. This data lives in Axsys. Veileder names on the other hand, exists only in Azure AD.

Thus, Syfoveileder collects the veileder to enhet relation from Axsys, and the names from Azure AD's Graph Api. We collect the name of the enhet, needed to fetch veileder names from Azure AD, from Axsys.

Sometimes we can't find the given veilederident in Azure AD, this can be because the veileder has quit, or because data has been entered incorrectly. In these instances, we log the ident, then we can send it to a grown up, or ask for help in #tech-windows.
noname

Technologies used

  • Gradle
  • Kotlin
  • Ktor

Test Libraries:

  • Kluent
  • Mockk
  • Spek

Requirements

  • JDK 17

Lint (Ktlint)

Command line

Run checking: ./gradlew --continue ktlintCheck

Run formatting: ./gradlew ktlintFormat

Git Hooks

Apply checking: ./gradlew addKtlintCheckGitPreCommitHook

Apply formatting: ./gradlew addKtlintFormatGitPreCommitHook

Contact

For NAV employees

We are available at the Slack channel #isyfo.