Skip to content

Expose user to do forms data to integrations#612

Open
andreas-ntonas wants to merge 1 commit into
chiefonboarding:masterfrom
andreas-ntonas:Expose-user-to-do-forms-data-to-integrations
Open

Expose user to do forms data to integrations#612
andreas-ntonas wants to merge 1 commit into
chiefonboarding:masterfrom
andreas-ntonas:Expose-user-to-do-forms-data-to-integrations

Conversation

@andreas-ntonas

Copy link
Copy Markdown

This PR allows the exposure of to-do related form data filled by new-hires to integrations

@GDay GDay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! I like this change, but see the comment below. I am open to other ideas too.

Comment thread back/users/models.py
Comment on lines +583 to +585
while todo_slug in todo_forms:
todo_slug = f"{original_slug}_{counter}"
counter += 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do get the intention of this, but I am not sure if this will work well when a to do item gets updated. It's now a list and when someone adds a new item in the middle, then the order gets completely messed up. When using this in integrations, that could have some major consequences.

This might go beyond the scope of this PR, but I feel like we should set an identifier through the frontend (that would likely require changes to the editor-form.js, so we are sure we send the correct value and any updates to the to do item would not cause issues.

@andreas-ntonas andreas-ntonas force-pushed the Expose-user-to-do-forms-data-to-integrations branch from 696f9e8 to f7371bb Compare January 21, 2026 05:59
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 90.598% (+0.007%) from 90.591%
when pulling f7371bb on andreas-ntonas:Expose-user-to-do-forms-data-to-integrations
into 2fa07f7 on chiefonboarding:master.

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.

3 participants