woodpecker/web
qwerty287 52d3652f2e
Fetch repositories with remote ID if possible (#1078)
Use IDs of the forge to fetch repositories instead of their names and owner names. This improves handling of renamed and transferred repos.

TODO

- [ ] try to support as many forges as possible
    - [x] Gogs (no API)
    - [ ] Bitbucket Server
    - [x] Coding (no API?)
- [x] update repo every time it is fetched or received from the forge
- [x] if repo remote IDs are not available, use owner / name to get it
- [x] handle redirections (redirect a renamed repo to its new path)
- [x] ~~pull all repos once during migration to update ID (?)~~ issue fixed by on-demand loading of remote IDs
- [x] handle redirections in web UI
- [ ] improve handling of hooks after a repo was renamed (currently it checks for a redirection to the repo)
- [x] tests
- [x] `UNIQUE` constraint for remote IDs after migration shouldn't work (all repos have an empty string as remote ID)

close #854
close #648 partial
close https://codeberg.org/Codeberg-CI/feedback/issues/46

Possible follow-up PRs
- apply the same scheme on everything fetched from the remote (currently only users)

Co-authored-by: 6543 <6543@obermui.de>
2022-09-05 17:08:51 +02:00
..
public/favicons Improve favicons (#576) 2021-12-08 13:58:00 +01:00
src Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
.eslintignore Update dependencies and tiny adjustments to UI (#1083) 2022-08-09 14:13:32 +02:00
.eslintrc.js Update dependencies and tiny adjustments to UI (#1083) 2022-08-09 14:13:32 +02:00
.gitignore Rewrite of WebUI (#245) 2021-11-03 17:40:31 +01:00
.prettierignore Fix prettier on locales (#1117) 2022-08-20 11:13:38 +02:00
.prettierrc.js Rewrite of WebUI (#245) 2021-11-03 17:40:31 +01:00
components.d.ts Extract commit message from branch creation (#1150) 2022-09-02 16:41:51 +02:00
index.html Use Woodpecker theme colors on Safari Tab Bar / Header Bar (#632) 2021-12-21 02:26:42 +01:00
LICENSE Pull in frontend 2019-11-12 14:27:39 +01:00
package.json Add option to turn on and off automatic log scrolling (#1149) 2022-09-01 20:35:34 +02:00
tsconfig.eslint.json Update dependencies and tiny adjustments to UI (#1083) 2022-08-09 14:13:32 +02:00
tsconfig.json Rewrite of WebUI (#245) 2021-11-03 17:40:31 +01:00
vite.config.ts Add syntax highlighting for pipeline config (#1082) 2022-08-09 17:39:45 +02:00
web.go Dedup code and migrate away from deprecated funcs (#1141) 2022-08-30 01:14:07 +02:00
windi.config.ts Rewrite of WebUI (#245) 2021-11-03 17:40:31 +01:00
yarn.lock Add option to turn on and off automatic log scrolling (#1149) 2022-09-01 20:35:34 +02:00