Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Personio documentation. #798

Merged
merged 7 commits into from
Dec 4, 2023
Merged

Added Personio documentation. #798

merged 7 commits into from
Dec 4, 2023

Conversation

dat-a-man
Copy link
Collaborator

Description

Added Personio documentation.

Related Issues

  • Fixes #...
  • Closes #...
  • Resolves #...

Additional Context

Copy link

netlify bot commented Nov 30, 2023

Deploy Preview for dlt-hub-docs ready!

Name Link
🔨 Latest commit e8f7fc5
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/656db0422c912d00082d3e4d
😎 Deploy Preview https://deploy-preview-798--dlt-hub-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Personio is a human resources management software that helps businesses streamline HR processes,
including recruitment, employee data management, and payroll, in one platform.

Our Personio verified source loads data using Perosnio API to your preferred
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linked.


### Grab credentials

To load data from Personio, you need to API credentials, `client_id` and `client_secret`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you missed something "you need to ... (what to do?) ... API"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.


### Source `personio_source`

This function initializes class `PersonioAPI` in "personio/helpers.py" and returns data resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rephrase it as "This dlt source returns data resources like ..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

1. Sign in to your Personio account, and ensure that your user account has API access rights.
1. Navigate to Settings > Integrations > API credentials.
1. Click on "Generate new credentials."
1. Assign necessary permissions to credentials, i.e. read access.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the Note at the end:

:::info
The Personio UI, which is described here, might change. The full guide is available at this link.
:::

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

configuration settings to get started.

For more information, read the
[Walkthrough: Add a verified source.](../../walkthroughs/add-a-verified-source)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we periodically reorganize docs structure, so we don't have Walkthrough section anymore, we need to replace it with something neutral, at least:
For more information, read Add a verified source.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

your chosen destination. This will ensure that your data is properly routed to its final
destination.

For more information, read the [General Usage: Credentials.](../../general-usage/credentials)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we periodically reorganize docs structure, so we don't have General Usage section anymore, we need to replace it with something neutral, at least:
For more information, read Credentials..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

For example, the `pipeline_name` for the above pipeline example is `personio`, you may also use
any custom name instead.

For more information, read the [Walkthrough: Run a pipeline.](../../walkthroughs/run-a-pipeline)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we periodically reorganize docs structure, so we don't have Walkthrough section anymore, we need to replace it with something neutral, at least:
For more information, read Run a pipeline.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

)
```

:::note
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raplace the whole note with one link to pipeline:

Configure the pipeline by specifying the pipeline name, destination, and dataset as follows:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

print(pipeline.run(load_data))
```

1. To load data from all supported endpoints:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to load all supported endpoints:

load_data = personio_source()
print(pipeline.run(load_data))

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


```python
load_data = personio_source().with_resources("employees", "absences", "attendances")
print(pipeline.run(load_data))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add one more example:
how to use start_date and end_date for attendances resource https://github.com/dlt-hub/verified-sources/blob/master/sources/personio/__init__.py#L100-L111

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, let's skip for now. Will update later.

@AstrakhantsevaAA AstrakhantsevaAA merged commit 406a104 into master Dec 4, 2023
37 checks passed
@AstrakhantsevaAA AstrakhantsevaAA deleted the docs/personio branch December 4, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants