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

Work package update_form is unfinished #39

Open
druggedhippo opened this issue Jul 11, 2023 · 0 comments
Open

Work package update_form is unfinished #39

druggedhippo opened this issue Jul 11, 2023 · 0 comments

Comments

@druggedhippo
Copy link

Work package update_form is not implemented properly.

https://www.openproject.org/docs/api/endpoints/work-packages/#work-package-edit-form

L#62 in pyopenproject/business/services/work_package_service_impl.py

return UpdateForm(self.connection)

Should be

return UpdateForm(self.connection, work_package).execute()

And pyopenproject/business/services/command/work_package/update_form.py needs the post request modified

json_obj = PostRequest(connection=self.connection, headers={"Content-Type": "application/json"}, context=f"{self.CONTEXT}/{self.package.id}/form", json=self.package.__dict__).execute()

along with the changes to the __init__ to store the package

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

No branches or pull requests

1 participant