Commit graph

17792 commits

Author SHA1 Message Date
Clemens 5671566df6 adjust fed repo splitting 2024-04-03 09:53:19 +02:00
Michael Jerger 7a142c876e remove federated user in case of user deletion 2024-04-02 18:36:22 +02:00
erik 5edf7d0e61 Also trim whitespaces within the list items 2024-04-02 17:33:32 +02:00
Clemens 431b4c2829 optimize function 2024-04-02 12:38:06 +02:00
Clemens 962cd374e2 delete federated repos when deleting repository 2024-04-02 12:36:04 +02:00
Clemens 8b56159042 prevent error when setting no fed repos 2024-04-02 11:13:50 +02:00
Michael Jerger 9212fb1633 feedback from discussion 2024-04-02 09:03:49 +02:00
Michael Jerger b747342672 separate collecting activities from sending them 2024-03-28 16:08:29 +01:00
Clemens 2ad685fd2c fix like target 2024-03-28 15:41:43 +01: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
Michael Jerger 992fbf6898 comments 2024-03-28 07:44:22 +01:00
Michael Jerger 259c0202c7 fix test & add some review 2024-03-27 19:56:32 +01:00
Michael Jerger 8eae48761f add some pictures 2024-03-27 19:26:55 +01:00
Michael Jerger e75bcb2f89 rename file 2024-03-27 19:02:37 +01:00
Clemens 97b5e0da91 revise NewForgeLike
Also added new test, which still fails since time.Now() does not match
2024-03-27 16:20:33 +01:00
Clemens 911e916a4f Added new blog post 2024-03-27 11:33:00 +01:00
Clemens a2a5956d79 Added context and choices to new adr 2024-03-27 09:29:23 +01:00
Michael Jerger dd37e3a7b8 wip 2024-03-27 08:25:16 +01:00
Michael Jerger a950ba4631 prepare state of the month 2024-03-27 08:21:44 +01:00
erik 84f73d9db8 Add ToDo 2024-03-26 16:56:06 +01:00
erik 01e9853161 Add ToDo for storing federated repos
We need to check whether federated repos already exist in db. This way multiple repos on a server (forks) can have the same federated repos.
2024-03-26 16:54:55 +01:00
erik 45cddb4ac7 Add logging 2024-03-26 16:53:02 +01:00
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