Monorepo for Tangled tangled.org
854
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotmirror,spindle,appview: propagate repo rename across services #275

open opened by oyster.cafe targeting master from lt/repo-rename-by-rkey
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mjm6w2jhfa22
+14 -11
Interdiff #6 #7
appview/db/repos_rename_test.go

This file has not been changed.

+14 -11
appview/repo/rename_test.go
··· 6 6 ) 7 7 8 8 func TestValidateRenameInput(t *testing.T) { 9 + const validTID = "3jzfcijpj2z2a" 9 10 cases := []struct { 10 11 name string 11 12 currentName string 13 + currentRkey string 12 14 raw string 13 15 wantName string 14 16 wantErrSub string 15 17 }{ 16 - {"happy path", "foo", "bar", "bar", ""}, 17 - {"trims surrounding whitespace", "foo", " bar ", "bar", ""}, 18 - {"strips .git suffix", "foo", "bar.git", "bar", ""}, 19 - {"empty after trim", "foo", " ", "", "cannot be empty"}, 20 - {"raw empty", "foo", "", "", "cannot be empty"}, 21 - {"path traversal slash", "foo", "../bar", "", "invalid path"}, 22 - {"invalid character", "foo", "ba r", "", "alphanumeric"}, 23 - {"same name as current", "foo", "foo", "", "matches the current name"}, 24 - {"case-only diff is not a no-op", "foo", "Foo", "Foo", ""}, 25 - {"strip-git collides with current", "foo", "foo.git", "", "matches the current name"}, 18 + {"happy path", "foo", "", "bar", "bar", ""}, 19 + {"trims surrounding whitespace", "foo", "", " bar ", "bar", ""}, 20 + {"strips .git suffix", "foo", "", "bar.git", "bar", ""}, 21 + {"empty after trim", "foo", "", " ", "", "cannot be empty"}, 22 + {"raw empty", "foo", "", "", "", "cannot be empty"}, 23 + {"path traversal slash", "foo", "", "../bar", "", "invalid path"}, 24 + {"invalid character", "foo", "", "ba r", "", "alphanumeric"}, 25 + {"same name as current with non-TID rkey", "foo", "foo", "foo", "", "matches the current name"}, 26 + {"same name as current with TID rkey allowed", "foo", validTID, "foo", "foo", ""}, 27 + {"case-only diff is not a no-op", "foo", "", "Foo", "Foo", ""}, 28 + {"strip-git collides with current", "foo", "", "foo.git", "", "matches the current name"}, 26 29 } 27 30 for _, tc := range cases { 28 31 t.Run(tc.name, func(t *testing.T) { 29 - got, err := validateRenameInput(tc.currentName, tc.raw) 32 + got, err := validateRenameInput(tc.currentName, tc.currentRkey, tc.raw) 30 33 if tc.wantErrSub == "" { 31 34 if err != nil { 32 35 t.Fatalf("err = %v, want nil", err)
spindle/ingester.go

This file has not been changed.

spindle/xrpc/add_secret.go

This file has not been changed.

spindle/xrpc/list_secrets.go

This file has not been changed.

spindle/xrpc/pipeline_cancel_pipeline.go

This file has not been changed.

spindle/xrpc/remove_secret.go

This file has not been changed.

History

8 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
merge conflicts detected
expand
  • api/tangled/cbor_gen.go:866
  • api/tangled/feedstar.go:5
  • api/tangled/gitrefUpdate.go:29
  • api/tangled/repocollaborator.go:19
  • api/tangled/repoissue.go:22
  • api/tangled/repopull.go:39
  • api/tangled/tangledrepo.go:24
  • cmd/cborgen/cborgen.go:17
  • knotserver/xrpc/merge.go:118
  • lexicons/feed/star.json:10
  • lexicons/git/refUpdate.json:11
  • lexicons/issue/issue.json:9
  • lexicons/pulls/pull.json:65
  • lexicons/repo/collaborator.json:11
  • lexicons/repo/repo.json:6
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments
1 commit
expand
knotmirror,spindle,appview: propagate repo rename across services
expand 0 comments