Earl Warren
05eaf1cf3e
Merge pull request 'Repository settings refactor' ( #2221 ) from algernon/forgejo:repo-units/ui-refactor into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2221
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
2024-02-14 13:29:04 +00:00
Gergely Nagy
e07b0e75ff
Add a direct link from repo header to unit settings
...
If a repository administrator is viewing a repository, and there are
units that can be enabled, display an "Add more..." link that leads to
the repository unit settings page.
The goal here is to allow instances to configure a small set of repo
units to be enabled by default, but also highlight for repo admins that
they can add more.
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-02-13 22:42:09 +01:00
Gusted
f68f880974
[BUG] Workaround borked Git version
...
- In Git version v2.43.1, the behavior of `GIT_FLUSH` was accidentially
flipped. This causes Forgejo to hang on the `check-attr` command,
because no output was being flushed.
- Workaround this by detecting if Git v2.43.1 is used and set
`GIT_FLUSH=0` thus getting the correct behavior.
- Ref: https://lore.kernel.org/git/CABn0oJvg3M_kBW-u=j3QhKnO=6QOzk-YFTgonYw_UvFS1NTX4g@mail.gmail.com/
- Resolves #2333 .
2024-02-13 18:33:18 +01:00
Michael Jerger
eecb9b8040
fmt fix
2024-02-10 15:22:30 +01:00
Michael Jerger
3ef57385ec
fix linting
2024-02-10 15:21:22 +01:00
Michael Jerger
3b244d673b
small fixes
2024-02-10 15:21:17 +01:00
Michael Jerger
b2cc848e7d
clean up aliases
2024-02-10 15:20:48 +01:00
Michael Jerger
e733809ef2
symetric handling for value/reference
2024-02-10 15:20:33 +01:00
Michael Jerger
91f7541add
refactor for semantic and cycle free deps
2024-02-10 15:20:17 +01:00
Clemens
67f3f66be4
Created FederatedUser
2024-02-10 15:19:36 +01:00
Michael Jerger
1b35bd2911
lint fix
2024-02-10 15:18:46 +01:00
Michael Jerger
9a9ac33766
lint fix
2024-02-10 15:18:44 +01:00
Michael Jerger
bbccc24ed1
test federationinfo validation
2024-02-10 15:18:32 +01:00
Clemens
9c37272ee9
make validateNotEmpty more generic
2024-02-10 15:18:30 +01:00
Michael Jerger
8610d94af8
start work on federationinfo
2024-02-10 15:18:29 +01:00
bom
12558d62c8
Remove MaxConnsPerHost limit for outgoing connections
2024-02-10 15:18:28 +01:00
bom
87bfa79f71
Configure client against DOS
2024-02-10 15:18:25 +01:00
Michael Jerger
8116214727
introduce nodeinfo
2024-02-10 15:17:07 +01:00
Michael Jerger
587bd07372
mv more fkt to http-client
2024-02-10 15:17:06 +01:00
Michael Jerger
3c2493902d
adjust to ugly linting
2024-02-10 15:17:05 +01:00
erik
1e40b814a1
Linting
2024-02-10 15:17:03 +01:00
Michael Jerger
a64ce2feb1
removed resolved todos
2024-02-10 15:17:02 +01:00
erik
2e031a9763
WIP Generic IsValid for *Id structs
2024-02-10 15:17:01 +01:00
Michael Jerger
6e4467d49d
experiment on generalization
2024-02-10 15:16:59 +01:00
erik
48cfb521d1
Add suffix checking helper
2024-02-10 15:16:58 +01:00
Michael Jerger
44e10ed65a
get wo body
2024-02-10 15:14:24 +01:00
Michael Jerger
abdf56dde1
move forgefed to models
2024-02-10 15:14:06 +01:00
Michael Jerger
0b2cf2a55b
remov unused experiments
2024-02-10 15:10:40 +01:00
Michael Jerger
184388015d
added more tests
2024-02-10 15:10:39 +01:00
Michael Jerger
3151c8fe81
make validate more compact
2024-02-10 15:10:37 +01:00
Michael Jerger
6fef54ed1c
there is a validation module
2024-02-10 15:10:34 +01:00
erik
3c515c2614
Add review todos
2024-02-10 15:10:33 +01:00
erik
c61be31c72
Remove redundant person implementation
2024-02-10 15:09:53 +01:00
erik
7071117864
Implement Person creation
2024-02-10 15:09:36 +01:00
erik
7529b9da91
Note ToDos for setting up useful tests
2024-02-10 15:09:33 +01:00
erik
4b490802d7
Test creation of client only
2024-02-10 15:09:32 +01:00
erik
61afc65377
Implement Get method on Client struct
2024-02-10 15:09:31 +01:00
erik
56d11bbff4
Don't hardcode method in NewRequest function
2024-02-10 15:09:31 +01:00
erik
93d79646de
Fix api url
2024-02-10 15:09:30 +01:00
erik
43ac3ddca9
Remove star validation as it happens in actor validation now
2024-02-10 15:09:29 +01:00
Michael Jerger
109dbd7d75
swager generated api
2024-02-10 15:09:16 +01:00
Michael Jerger
07bd30cf20
exosy has moved this package to service
2024-02-10 15:09:16 +01:00
erik
b1f3706575
Introduce validation against source
2024-02-10 15:09:05 +01:00
erik
b085ce37a6
Review
2024-02-10 15:08:40 +01:00
erik
d2b464582f
Add ToDo
2024-02-10 15:08:34 +01:00
erik
e18e90f8df
Add fieldname and type
2024-02-10 15:08:31 +01:00
erik
e8013250b8
Add question
2024-02-10 15:08:23 +01:00
erik
7790e98f47
Remove unused funcs and structs
2024-02-10 15:08:22 +01:00
Michael Jerger
14c74f27cb
tests are now working
2024-02-10 15:08:18 +01:00
bom
d28ea1a30b
Start implementing UnmarshalJSON for Star
2024-02-10 15:08:15 +01:00