You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: add Personio source connector and add the connector type to package names - #26
No actionable comments were generated in the recent review.
Walkthrough
This change adds a Personio source connector that authenticates with client credentials, lists paginated employees and employment data, and maps records to identities. It adds parameterized endpoint matching and updates workspace, documentation, and test setup. It also renames the AWS package and release tag.
The fetch proxy matches declared paths with non-empty parameter segments. Tests cover empty parameters and paths with extra, missing, or unmatched segments.
Personio API schemas and client source-connectors/personio/src/utils/schema.ts, source-connectors/personio/src/utils/client.ts
Adds schemas for token, person, employment, and paginated responses. Client helpers validate responses, build authorization headers, and obtain access tokens.
Registers the connector and its employee-list handler. The handler fetches people and their latest employment, maps them to identities, and returns a next cursor when available.
sequenceDiagram
participant EmployeeList as Employee list handler
participant Token as getAccessToken
participant API as Personio API
participant Mapper as toIdentity
EmployeeList->>Token: Request access token
Token->>API: Post client credentials
API-->>Token: Return validated access token
EmployeeList->>API: Fetch person page
API-->>EmployeeList: Return people and next cursor
loop For each person
EmployeeList->>API: Fetch latest employment
API-->>EmployeeList: Return employment data
EmployeeList->>Mapper: Convert person and employment
Mapper-->>EmployeeList: Return identity
end
Loading
Possibly related PRs
open-iga/plugins#24: Defines the source connector and identity-list contracts used by the Personio connector.
Merge Risk: Minimal · up to f7823 · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names two changes: adding the Personio source connector and adding the connector type to package names. The changeset covers both. The Personio connector files and the rename of @open-iga/aw…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names two changes: adding the Personio source connector and adding the connector type to package names. The changeset covers both. The Personio connector files and the rename of @open-iga/aws to @open-iga/aws-sink (package.json, CHANGELOG, release workflow, README) are present. The title is specific and matches the main change, so it passes. It does not mention the mock-fetch test helper changes, which is acceptable because the title need not cover every detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
@open-iga/aws-sink.