chore: add OP API request as debug log#991
Merged
saw-jan merged 3 commits intorelease/2.11from Mar 10, 2026
Merged
Conversation
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
7bca62c to
a044cf2
Compare
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
PHP Code CoverageCoverage after merging chore/log-op-api-request into release/2.11 will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nabim777
approved these changes
Mar 10, 2026
saw-jan
added a commit
that referenced
this pull request
Mar 10, 2026
* chore: add OP API request as debug log Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: add changelog entry Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * fix: use builtin exception class Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
saw-jan
added a commit
that referenced
this pull request
Mar 11, 2026
* chore: add OP API request as debug log Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: add changelog entry Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * fix: use builtin exception class Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
saw-jan
added a commit
that referenced
this pull request
Mar 12, 2026
* fix: handle op projects whose parent project is unknown (#988) * fix: hanlding undisclosed and non-existing project parent * test: fix vue unit tests * test: add vue unit tests * chore: add changelog entry --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: add OP API request as debug log (#991) * chore: add OP API request as debug log Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: add changelog entry Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * fix: use builtin exception class Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * fix: use https NC url in OP API requests (#992) * fix: use https NC url in OP API requests Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: add changelog entry Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * test: add phpunit test Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: update php dev dependencies (#971) * chore: update php dev packages Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: fix lint errors Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * chore: test with php 8.4 Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * ci: remove unwanted nextcloud env Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * ci: fix postgress db service Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> * test: accept 500 error on invalid json Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com> --------- Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Every API requests to OpenProject is added as debug logs for better observability.
{ "reqId":"dcttsigDOs1GDqtpsMmU", "level":0, "time":"2026-03-10T08:33:42+00:00", "remoteAddr":"172.28.0.5", "user":"admin", "app":"integration_openproject", "method":"GET", "url":"/ocs/v2.php/apps/integration_openproject/api/v1/projects", "scriptName":"/ocs/v2.php", "message":"OpenProject API request: {\"method\":\"GET\",\"url\":\"https:\\/\\/openproject.local\\/api\\/v3\\/work_packages\\/available_projects?filters=%5B%7B%22storageUrl%22%3A%7B%22operator%22%3A%22%3D%22%2C%22values%22%3A%5B%22http%3A%5C%2F%5C%2Fnextcloud.local%22%5D%7D%2C%22userAction%22%3A%7B%22operator%22%3A%22%26%3D%22%2C%22values%22%3A%5B%22file_links%5C%2Fmanage%22%2C%22work_packages%5C%2Fcreate%22%5D%7D%7D%5D&pageSize=100\",\"headers\":{\"Authorization\":\"[REDACTED]\",\"User-Agent\":\"Nextcloud OpenProject integration\"},\"body\":null}", "userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36", "version":"32.0.6.1", "data":{"app":"integration_openproject"} } { "reqId":"sMHT45vSsdekcU0CjaWh", "level":0, "time":"2026-03-10T08:35:35+00:00", "remoteAddr":"172.28.0.5", "user":"admin", "app":"integration_openproject", "method":"POST", "url":"/ocs/v2.php/apps/integration_openproject/api/v1/create/work-packages", "scriptName":"/ocs/v2.php", "message":"OpenProject API request: {\"method\":\"POST\",\"url\":\"https:\\/\\/openproject.local\\/api\\/v3\\/work_packages\",\"headers\":{\"Authorization\":\"[REDACTED]\",\"User-Agent\":\"Nextcloud OpenProject integration\",\"Content-Type\":\"application\\/json\"},\"body\":{\"_links\":{\"type\":{\"href\":\"\\/api\\/v3\\/types\\/1\",\"title\":\"Task\"},\"status\":{\"href\":\"\\/api\\/v3\\/statuses\\/1\",\"title\":\"New\"},\"assignee\":{\"href\":null,\"title\":null},\"project\":{\"href\":\"\\/api\\/v3\\/projects\\/1\",\"title\":\"Demo project\"}},\"subject\":\"test\",\"description\":{\"format\":\"markdown\",\"raw\":\"\",\"html\":\"\"}}}", "userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36", "version":"32.0.6.1", "data":{"app":"integration_openproject"} }Related Issue or Workpackage
Screenshots (if appropriate):
Types of changes
Checklist:
CHANGELOG.mdfile