Commit graph

4558 commits

Author SHA1 Message Date
erik daccaed157 Rename federatedRepo to followingRepo 2024-04-03 12:08:44 +02:00
Clemens d240a9bc90 trim trailing semicolon 2024-04-03 10:25:40 +02:00
Clemens 5671566df6 adjust fed repo splitting 2024-04-03 09:53:19 +02:00
erik 5edf7d0e61 Also trim whitespaces within the list items 2024-04-02 17:33:32 +02:00
Clemens 8b56159042 prevent error when setting no fed repos 2024-04-02 11:13:50 +02:00
Michael Jerger e2b11b93bc Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star 2024-03-28 15:21:40 +01:00
Michael Jerger fc8e2b3f8a Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star 2024-03-28 15:05:35 +01:00
Michael Jerger 4d5c8b5563 refactor services 2024-03-28 15:00:55 +01:00
Clemens 7f19247b0a Moved sendLikeActivities to federation_service 2024-03-28 14:27:50 +01:00
Clemens 1ad7bdf983 fixed tests
part1, one test still failing
2024-03-28 09:36:08 +01:00
Michael Jerger d624ebb712 use doer coming from api 2024-03-28 08:13:00 +01:00
erik 04f907c8c8 Revert 2024-03-26 15:28:55 +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
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 950dcd959e implement storage of federated_repo 2024-03-22 20:14:20 +01:00
erik 0f27f0a05b Add discussion ToDo 2024-03-22 17:49:29 +01:00
erik 288dda282c Add more ToDos 2024-03-22 17:41:36 +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
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 84f2aab570 Add todo 2024-03-21 14:42:38 +01:00
erik 42a41ce2bc Remove todo 2024-03-21 14:42:16 +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
erik d1190423bb Implement single Repo validation and saving POC 2024-03-20 13:21:17 +01:00
Michael Jerger 41da150fb3 add review comment 2024-03-19 19:28:33 +01:00
erik 884e38bdab WIP Implement proper saving of federated repo urls
Added ToDos where relevant
2024-03-19 15:29:37 +01:00
Michael Jerger 6901ae4b99 wip: found backend for settings update 2024-03-19 08:29:57 +01:00
Clemens 2e41fe0a46 fix import 2024-02-12 13:00:47 +01:00
Michael Jerger 6e6813a88b make operatorid unique 2024-02-10 15:23:04 +01:00
Michael Jerger eecb9b8040 fmt fix 2024-02-10 15:22:30 +01:00
Michael Jerger 5fa62287d6 undo rebase conflicts 2024-02-10 15:21:45 +01:00
Michael Jerger 3ef57385ec fix linting 2024-02-10 15:21:22 +01:00
Michael Jerger b2cc848e7d clean up aliases 2024-02-10 15:20:48 +01:00
Michael Jerger 91f7541add refactor for semantic and cycle free deps 2024-02-10 15:20:17 +01:00
Michael Jerger 66bc7a9a0c Search federatedUser instead of loginName 2024-02-10 15:20:09 +01:00
Michael Jerger edf7f61b83 mv federated_user_creation to user package 2024-02-10 15:19:55 +01:00
Michael Jerger a702da69cc added test for federated user 2024-02-10 15:19:40 +01:00
Michael Jerger a1ca7e958a use local fqdn for generated user email 2024-02-10 15:19:09 +01:00
Michael Jerger c58a995fb2 refactor FederationInfo -> FederationHost 2024-02-10 15:18:56 +01:00
Michael Jerger 1b35bd2911 lint fix 2024-02-10 15:18:46 +01:00
Michael Jerger c4eb763f4a lint fix 2024-02-10 15:18:45 +01:00
Michael Jerger ca5eaa8c6b introduce FI Factory 2024-02-10 15:18:43 +01:00
Michael Jerger dabd773f6b Fix error handling & add timestamp check 2024-02-10 15:18:43 +01:00
Michael Jerger 40ec049013 add the next todo 2024-02-10 15:18:42 +01:00
Clemens 1f989f2ecd Added FederationInfo Create function 2024-02-10 15:18:41 +01:00
Michael Jerger 380d3db0bf integrate federation info in api call 2024-02-10 15:18:40 +01:00