Monorepo for Tangled tangled.org
859
fork

Configure Feed

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

appview,knotserver: 1.14 deploy prep #349

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/3mlbm4tw3bj22
+36 -16
Diff #2
+7
appview/db/db.go
··· 1919 1919 }) 1920 1920 conn.ExecContext(ctx, "pragma foreign_keys = on;") 1921 1921 1922 + orm.RunMigration(conn, logger, "migrate-knots-to-repo-did-rename", func(tx *sql.Tx) error { 1923 + _, err := tx.Exec(` 1924 + update registrations set needs_upgrade = 1; 1925 + `) 1926 + return err 1927 + }) 1928 + 1922 1929 return &DB{ 1923 1930 db, 1924 1931 logger,
+5
appview/pages/templates/repo/needsUpgrade.html
··· 53 53 <div class="text-center"> 54 54 {{ i "triangle-alert" "size-5 inline-flex items-center align-middle" }} 55 55 The knot hosting this repository needs an upgrade. This repository is currently unavailable. 56 + <div class="mt-2"> 57 + <a class="underline" href="https://docs.tangled.org/migrating-knots-and-spindles.html"> 58 + Read the upgrade guide 59 + </a> 60 + </div> 56 61 </div> 57 62 </div> 58 63 </div>
+2 -2
appview/pages/templates/repo/settings/general.html
··· 217 217 218 218 {{ define "renameRepo" }} 219 219 {{ if and .RepoInfo.Roles.IsOwner .RepoInfo.RepoDid }} 220 - <form hx-post="/{{ $.RepoInfo.FullName }}/settings/rename" hx-swap="none"> 220 + <form hx-post="/{{ $.RepoInfo.FullName }}/settings/rename" hx-swap="none" class="group"> 221 221 <h2 class="text-sm pb-2 uppercase font-bold">Rename Repository</h2> 222 222 <p class="text-gray-500 dark:text-gray-400 mb-2"> 223 223 Existing git remotes that use the old name will break. Use the ··· 239 239 <div class="flex justify-end pt-2"> 240 240 <button 241 241 type="submit" 242 - class="btn flex items-center gap-2 group" 242 + class="btn flex items-center gap-2" 243 243 > 244 244 {{ i "pencil" "w-4 h-4" }} 245 245 rename
+16
docs/DOCS.md
··· 1500 1500 Newer migration guides are listed first, and older guides 1501 1501 are further down the page. 1502 1502 1503 + ## Upgrading to v1.14.0-alpha 1504 + 1505 + Starting with v1.14.0-alpha, the fully knot uses the repoDID as its 1506 + canonical handle for repositories. This unlocks repository 1507 + renames from the appview UI and changes the wire format for 1508 + the following lexicons (`sh.tangled.repo.pull`, `sh.tangled.repo.collaborator`, 1509 + `sh.tangled.repo.issue`, `sh.tangled.git.refUpdate`). 1510 + 1511 + Knots that have not been upgraded may silently drop new push 1512 + events, pull requests, issues, and collaborator invites for 1513 + repositories they host until upgraded. So upgrade please!!! 1514 + 1515 + - Upgrade to the latest tag (v1.14.0 or above) 1516 + - Head to the [knot dashboard](https://tangled.org/settings/knots) and 1517 + hit the "retry" button to verify your knot 1518 + 1503 1519 ## Upgrading to v1.13.0-alpha 1504 1520 1505 1521 Starting with v1.13.0-alpha, every repository on a knot is
+5 -13
knotserver/xrpc/version.go
··· 19 19 return 20 20 } 21 21 22 - var modVer string 23 - var sha string 24 - var modified bool 25 - 26 - for _, mod := range info.Deps { 27 - if mod.Path == "tangled.org/tangled.org/knotserver/xrpc" { 28 - modVer = mod.Version 29 - break 30 - } 22 + modVer := info.Main.Version 23 + if modVer == "" || modVer == "(devel)" { 24 + modVer = "(devel)" 31 25 } 32 26 27 + var sha string 28 + var modified bool 33 29 for _, setting := range info.Settings { 34 30 switch setting.Key { 35 31 case "vcs.revision": ··· 39 35 } 40 36 } 41 37 42 - if modVer == "" { 43 - modVer = "unknown" 44 - } 45 - 46 38 if sha == "" { 47 39 version = modVer 48 40 } else if modified {
+1 -1
nix/pkgs/knot-unwrapped.nix
··· 4 4 sqlite-lib, 5 5 src, 6 6 }: let 7 - version = "1.13.0-alpha"; 7 + version = "1.14.0-alpha"; 8 8 in 9 9 buildGoApplication { 10 10 pname = "knot";

History

3 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview,knotserver: 1.14 deploy prep
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
appview,knotserver: 1.14 deploy prep
expand 0 comments
1 commit
expand
appview,knotserver: 1.14 deploy prep
expand 0 comments