Repository navigation
Conversation
2 tasks done
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
7 tasks done
lokewate
force-pushed
the
refactor/move-task-api
branch
from
November 30, 2026 06:20
54db3e0 to
7fb0c73
Compare
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 adds the task API packages to core/platform. Pinning to that PR's head lets the next commit switch over to them; the pin moves to the merge commit once #444 merges. The pin changes no other module version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 moved the task API packages into core/platform unchanged: tasks, tasks/readauthz, tasks/authzgate, tasks/extensions/authz, tasks/extensions/notify and tasks/systemcaller. Import them from there and delete nsw-srilanka's copies. internal/tasks/plugins and internal/tasks/renderer stay here. The docs link the authz extension's README and the task gate in core. Behaviour is unchanged. Closes #1239 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
force-pushed
the
refactor/move-task-api
branch
from
November 30, 2026 07:12
7fb0c73 to
0ee8df7
Compare
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 adds the task API packages to core/platform. Pinning to that PR's head lets the next commit switch over to them; the pin moves to the merge commit once #444 merges. The pin changes no other module version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 moved the task API packages into core/platform unchanged: tasks, tasks/readauthz, tasks/authzgate, tasks/extensions/authz, tasks/extensions/notify and tasks/systemcaller. Import them from there and delete nsw-srilanka's copies. internal/tasks/plugins and internal/tasks/renderer stay here. The docs link the authz extension's README and the task gate in core. Behaviour is unchanged. Closes #1239 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
force-pushed
the
refactor/move-task-api
branch
from
November 30, 2026 09:42
0ee8df7 to
c4b5f24
Compare
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 adds the task API packages to core/platform. Pinning to that PR's head lets the next commit switch over to them; the pin moves to the merge commit once #444 merges. The pin changes no other module version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
added a commit
to OpenNSW/nsw-srilanka
that referenced
this pull request
Nov 30, 2026
OpenNSW/core#444 moved the task API packages into core/platform unchanged: tasks, tasks/readauthz, tasks/authzgate, tasks/extensions/authz, tasks/extensions/notify and tasks/systemcaller. Import them from there and delete nsw-srilanka's copies. internal/tasks/plugins and internal/tasks/renderer stay here. The docs link the authz extension's README and the task gate in core. Behaviour is unchanged. Closes #1239 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
force-pushed
the
refactor/move-task-api
branch
from
December 1, 2026 06:37
c4b5f24 to
4c544a4
Compare
|
|
lokewate
force-pushed
the
refactor/move-task-api
branch
from
December 1, 2026 10:08
4c544a4 to
4378597
Compare
lokewate
marked this pull request as ready for review
December 1, 2026 10:08
Byte-for-byte copies of nsw-srilanka's internal/tasks (its top-level files only), internal/tasks/readauthz, internal/tasks/authzgate, internal/tasks/extensions/authz, internal/tasks/extensions/notify and internal/tasks/systemcaller at b93ac9204c870f3e8154a6f4062a5f44fc2effe0 (branch refactor/1245-generic-task-api-wording, OpenNSW/nsw-srilanka#1340) into platform/, tests and READMEs included. No other changes. They do not build until the import rewrite in the next commit. Part of OpenNSW/nsw-srilanka#1248 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… require its dependencies
Mechanical, no other changes:
find platform/tasks -name '*.go' -print0 \
| xargs -0 perl -pi -e 's#"github.com/OpenNSW/nsw-srilanka/internal/(caseparty|tasks/readauthz|tasks/extensions/authz)"#"github.com/OpenNSW/core/platform/$1"#'
make license
cd platform && GOWORK=off go get github.com/OpenNSW/core/httputil@v0.3.0 && GOWORK=off go mod tidy
make license and core's pre-commit hook add the SPDX headers to the copied
files. go.mod changes in this commit because the hook lints and builds the
module. tasks needs httputil.ErrTrailingData, so core/httputil goes from
v0.2.0 to v0.3.0, the version nsw-srilanka requires.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lokewate
force-pushed
the
refactor/move-task-api
branch
from
December 2, 2026 02:16
4378597 to
ef718e7
Compare
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.
Summary
Moves nsw-srilanka's task HTTP API and its authorization into
core/platform, unchanged. Phase 4 of OpenNSW/nsw-srilanka#1248, issue OpenNSW/nsw-srilanka#1239.The code was made generic in nsw-srilanka first (OpenNSW/nsw-srilanka#1340). OpenNSW/nsw-srilanka#1361 then rewrote the handlers' comments to name the path values they read instead of route paths, so this PR copies it from nsw-srilanka's
mainat OpenNSW/nsw-srilanka#1361's merge commit,d5b188df. The scope names stay in nsw-srilanka, which keeps wiring the routes, so the OpenAPI specs stay there too.Stacked on #443. Review it after #443, or with #443 as the base.
Type of Change
Changes Made
internal/tasks(its own files, notpluginsorrenderer)platform/tasksinternal/tasks/readauthzplatform/tasks/readauthzinternal/tasks/authzgateplatform/tasks/authzgateinternal/tasks/extensions/authzplatform/tasks/extensions/authzinternal/tasks/extensions/notifyplatform/tasks/extensions/notifyinternal/tasks/systemcallerplatform/tasks/systemcallerReview commit by commit.
9670777b688980caseparty,tasks/readauthzandtasks/extensions/authzimports tocore/platform, adds the SPDX headers (make licenseand core's pre-commit hook), and runsgo mod tidy.go.mod:core/httputilgoes from v0.2.0 to v0.3.0, nsw-srilanka's version, sincetasksuseshttputil.ErrTrailingData.ef718e7platform/README.md.Blob check
Each file in
9670777has the same blob as in nsw-srilanka atd5b188df(git rev-parse <commit>:<path>):internal/tasks/claim_handler.go405b16520cd5internal/tasks/claim_handler_test.go497c9f6edfe6internal/tasks/draft_validation_test.gofadc8e515aa7internal/tasks/file_binding.go054b3cfb77d5internal/tasks/file_binding_test.go8fc700d4c828internal/tasks/http_handler.go6bfa12ecbc66internal/tasks/http_handler_test.go24266c60f9e0internal/tasks/task_template.go1fa0c16b9fe0internal/tasks/task_template_test.go1160cee7b753internal/tasks/title.gob0a1339f0763internal/tasks/title_test.gob3f2dff38876internal/tasks/authzgate/middleware.gocf4033e389ecinternal/tasks/authzgate/middleware_test.goefec39ad9ae8internal/tasks/extensions/authz/README.md3056090d1b50internal/tasks/extensions/authz/authz.goaafa8a09e4ebinternal/tasks/extensions/authz/authz_test.go5a5af86de614internal/tasks/extensions/authz/wiring.go3c2ff6e614e7internal/tasks/extensions/authz/wiring_test.goafb240c55a7cinternal/tasks/extensions/notify/README.md54cdd8dbe0d1internal/tasks/extensions/notify/notify.go923ae8d9aa33internal/tasks/extensions/notify/notify_test.go0dfc0bc7d88finternal/tasks/extensions/notify/wiring.goff682ee00309internal/tasks/readauthz/readauthz.go52314ff3acf6internal/tasks/readauthz/readauthz_test.godb0a81cc2ccainternal/tasks/systemcaller/systemcaller.go055e5f9c7be5internal/tasks/systemcaller/systemcaller_test.gob8f1dc8acdc2The core path is the same with
internal/replaced byplatform/.Testing
The tests move with the code.
go build ./...,go test -race ./...andgolangci-linton the moved packages pass inplatform/.Related Issues
Related to OpenNSW/nsw-srilanka#1239, OpenNSW/nsw-srilanka#1248, OpenNSW/nsw-srilanka#1340
🤖 Generated with Claude Code