1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00
Commit graph

17765 commits

Author SHA1 Message Date
erik
436466dcad Check if federation enabled in StarRepo 2024-03-26 16:21:28 +01:00
erik
e9bbdc678b Not using object URL 2024-03-26 16:21:09 +01:00
erik
04f907c8c8 Revert 2024-03-26 15:28:55 +01:00
erik
32d457f9a3 StarRepo Wrapper 2024-03-26 15:28:36 +01:00
erik
0b8aa3105c Create object manually 2024-03-26 15:28:11 +01:00
erik
b2105de36f SendLikeActivity to api
It might not be a good idea to start a possibly long lasting http call during a running DB transaction. I.E. in the case of failing transaction we already sent some data into the world which might not be valid.
2024-03-26 14:39:25 +01:00
Clemens
bbe5096307 fixed circular dependencies
next: fix post call error
2024-03-26 14:02:30 +01:00
Clemens
7f0371056e moved functionality
import of forgefed causes circular dependencies. This has to be solved!
2024-03-26 10:23:14 +01:00
Clemens
d251fc2611 set federatedRepoList into context 2024-03-26 08:28:22 +01:00
Michael Jerger
cf8a30efac mob-next: how to store port & schema 2024-03-26 07:58:04 +01:00
Michael Jerger
5b8173f660 do not return invalid result 2024-03-26 07:36:09 +01:00
erik
6d814447d0 Use Plural 2024-03-25 16:52:39 +01:00
erik
653ced5596 Validate before returning 2024-03-25 16:47:18 +01:00
erik
35d3fc199c Rename to StoreFederatedRepo* 2024-03-25 16:35:35 +01:00
erik
ca7d1c6f78 Localize error messages 2024-03-25 16:30:02 +01:00
Michael Jerger
828e7a76f6 use new table to populate settings 2024-03-25 09:15:32 +01:00
Michael Jerger
a9d18e5327 fixed issues, store now works 2024-03-23 17:01:25 +01:00
Michael Jerger
ce317c33cb fix context 2024-03-23 15:27:45 +01:00
Michael Jerger
950dcd959e implement storage of federated_repo 2024-03-22 20:14:20 +01:00
erik
6b767684a7 Add discussion ToDo 2024-03-22 17:51:20 +01:00
erik
0f27f0a05b Add discussion ToDo 2024-03-22 17:49:29 +01:00
erik
0f9d1c80be Implement CreateFederatedRepoList 2024-03-22 17:44:27 +01:00
erik
36c0c1c3c1 Add DB functionality for federated repos 2024-03-22 17:41:59 +01:00
erik
288dda282c Add more ToDos 2024-03-22 17:41:36 +01:00
Michael Jerger
508b4deac8 add test & fix compile 2024-03-22 08:37:06 +01:00
Michael Jerger
4938d38e39 more review 2024-03-22 08:08:54 +01:00
Michael Jerger
9ccad50b05 review 2024-03-22 07:52:03 +01:00
Michael Jerger
7316108d56 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star 2024-03-22 07:32:30 +01:00
Michael Jerger
7e355986f8 fix wording 2024-03-22 07:32:22 +01:00
erik
3e6eb255b3 WIP Initial, naive implementation of sending stars to fed repos
Currently no rate limits are respected
The mechanisms to use the Federated repo table need to be used
2024-03-21 16:29:13 +01:00
erik
0c6c43003c Implement getting APAPIURL for repo and user 2024-03-21 16:27:35 +01:00
erik
ed256ca540 Implement NewForgeLike 2024-03-21 16:27:08 +01:00
erik
2e0584bdf3 Clearer error message
"May" is also interchangeable with "could". "Should" fits better in this context.
2024-03-21 15:37:37 +01:00
erik
84f2aab570 Add todo 2024-03-21 14:42:38 +01:00
erik
42a41ce2bc Remove todo 2024-03-21 14:42:16 +01:00
erik
a02ec0363b Add todo 2024-03-21 14:42:04 +01:00
erik
e4242dafd9 Add Function description 2024-03-21 14:41:11 +01:00
erik
689837b63a Fix typos 2024-03-21 12:59:59 +01:00
erik
f327c0da24 Cap max size of federated repo list at 2048 bytes 2024-03-21 12:18:29 +01:00
erik
6055b4fca0 Add todo 2024-03-21 11:42:12 +01:00
Michael Jerger
b4bb41e0e3 introduce federated repo 2024-03-21 08:25:40 +01:00
erik
3b30c678e7 Remove ToDo 2024-03-20 16:22:35 +01:00
erik
b6035c03ae Rephrasing for clearness 2024-03-20 16:14:54 +01:00
erik
2e803e10c0 Do not use binding at this stage
It wasn't clear how to utilize the "type" field in the .tmpl for our
purposes.
2024-03-20 16:13:00 +01:00
erik
13bf84e89e Implent checking for list of repos 2024-03-20 16:12:20 +01:00
erik
3dda92b52b Update Locales to reflect changes 2024-03-20 13:26:59 +01:00
erik
ea4471d0db Remove ToDos 2024-03-20 13:22:56 +01:00
erik
d1190423bb Implement single Repo validation and saving POC 2024-03-20 13:21:17 +01:00
erik
1cbd5e33cb Validate Federated Repos Field
Considering this from a POC perspective we might want to avoid misuse
of this field. In other words, we want this field to be used as
intended.
2024-03-20 13:16:53 +01:00
erik
584af0486d Add Federation specific URL validation 2024-03-20 13:13:23 +01:00