mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-06 11:55:35 +02:00
commit 1be80cfdbca10d5014cec904e96c7a390b338493 Merge:c01b10a593
130981af64
Author: Earl Warren <earl-warren@noreply.codeberg.org> Date: Thu Jun 6 06:36:34 2024 +0000 Merge pull request 'federated-star' (#1680) from meissa/forgejo:forgejo-federated-star into forgejo Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1680 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> commit130981af64
Merge:62856e639e
c01b10a593
Author: Earl Warren <earl-warren@noreply.codeberg.org> Date: Thu Jun 6 06:07:34 2024 +0000 Merge branch 'forgejo' into forgejo-federated-star commit62856e639e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jun 6 07:26:28 2024 +0200 adjust field name commit81236bc9ef
Merge:c0b9ab2060
1b3ccfffe8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Jun 5 07:33:12 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commitc0b9ab2060
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Jun 4 12:37:18 2024 +0200 Extend integration test for staring federated repo commit98939c4745
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 31 18:05:29 2024 +0200 remove no longer used doc commit17e3f6c6f3
Merge:58b8f57d3f
f887972348
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 31 18:03:19 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit58b8f57d3f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 09:20:39 2024 +0200 more lint commitc3650cb2fe
Merge:07e2708e3d
73f6e8809a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 09:01:00 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit07e2708e3d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 08:59:32 2024 +0200 lint commite7580da130
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 08:58:19 2024 +0200 lint commit7b2309592c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 08:55:47 2024 +0200 remove unused commitdadfb29ae9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 29 08:44:00 2024 +0200 relax validation commit26612aa75b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue May 28 15:37:53 2024 +0200 Add ToDo commitfa5806cecf
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue May 28 15:37:41 2024 +0200 Use StatusSeeOther commit75c93e5319
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue May 28 12:54:49 2024 +0200 Update NewRepositoryID with case for following repo commit9c9333868c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue May 28 12:38:27 2024 +0200 Add todo We currently validate RepositoryID uris to be a valid api address from our own server. commit69e79e50c2
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue May 28 12:36:34 2024 +0200 Lift test env prep one up commit72f2f35bd8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 28 08:57:03 2024 +0200 wip integration test commita133b6de31
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 28 08:53:19 2024 +0200 rename commit3d1586d9cb
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 27 08:20:43 2024 +0200 translation hast to be done in translation tool commit108971ddc8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 27 08:18:09 2024 +0200 add migration commit6ef691b8d7
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 16:34:11 2024 +0200 lint commita3c90e3085
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 13:27:37 2024 +0200 field no longer in use commit5ace6816ac
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 08:50:54 2024 +0200 remove todo - no change required commit64be24ed0c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 08:49:08 2024 +0200 Format & remove old todos commit30e2582f24
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 08:24:54 2024 +0200 mv doc to doc project commit2e72b5e05b
Merge:4c87b0b3ee
eea841d25d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 24 07:25:20 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit4c87b0b3ee
Merge:a1acc46c88
9c7ff70072
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 22 18:23:21 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commita1acc46c88
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 21 18:46:48 2024 +0200 make mocked user consistent commita62c2afcea
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue May 21 11:43:15 2024 +0200 Extended integration test commit07659a5e7e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 17 08:15:33 2024 +0200 rename fxct name commit86db5f612c
Merge:307b27bbaa
45a41811de
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu May 16 18:28:43 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit307b27bbaa
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu May 16 18:22:09 2024 +0200 choose a not local avail federated userid commita9c00d49da
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu May 16 10:55:17 2024 +0200 Set LowerName to name with lower case commit6457ace318
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu May 16 10:26:51 2024 +0200 Added migrations for User and FederatedUser commit1b3c4dcd85
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu May 16 10:06:13 2024 +0200 Extended AP like-repo integration test commit94be68725a
Merge:08fe47d5c8
fe3473fc8b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 15 09:35:02 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit08fe47d5c8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 14 07:48:00 2024 +0200 Do not relay on ID start at 1 commit57a9729094
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 14:29:54 2024 +0200 linting commite55533d64d
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 14:15:36 2024 +0200 Added migration for creation of federation_host table commitcf9953a612
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 12:28:31 2024 +0200 linting commitc3fb34d5b4
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 12:00:16 2024 +0200 fixed some comments commit379b0234eb
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 12:00:02 2024 +0200 added test cases for federationhost commit8f42684599
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 11:24:50 2024 +0200 Renamed field of FederationHost commitc4f9f8578a
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 13 11:14:04 2024 +0200 Introduced ErrNotValid commitcb4690e570
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 13 07:45:37 2024 +0200 linting commit3cc48a5c9f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 10 17:44:26 2024 +0200 format commit3bf423c97f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 10 17:29:49 2024 +0200 assert, that federation-host is present. commit8d330fdb5d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 10 17:01:15 2024 +0200 Now we've an intergration test with second federation server commit0665c1252e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 10 16:25:54 2024 +0200 make start time more flexible commitc4c03dab4b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 10 15:27:54 2024 +0200 on the way to test with second server commit8ec570841a
Merge:e122df36f8
99d1ae52fc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 7 17:49:26 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commite122df36f8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 7 17:47:35 2024 +0200 prepare for next pr commitfdfc21a6b8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue May 7 07:38:20 2024 +0200 review results commit82fe1d3e42
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon May 6 16:01:23 2024 +0200 make fmt commita485837b9c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 6 08:52:25 2024 +0200 removed unused code commitc70b8d28a3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 6 08:12:43 2024 +0200 linting commit8f298a9901
Merge:b99d66b530
8c3511a8b3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon May 6 07:58:50 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commitb99d66b530
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun May 5 18:04:12 2024 +0200 linting commit3a6dfadcd0
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun May 5 17:10:16 2024 +0200 linting commit510868731d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun May 5 16:58:15 2024 +0200 linting commit1a07db1a40
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun May 5 16:35:25 2024 +0200 omit linting next try commitca0a53bf5f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat May 4 17:58:54 2024 +0200 omit linting maybe? commitee71f86432
Merge:957b1023e9
85f2727872
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 3 08:44:49 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit957b1023e9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri May 3 08:00:17 2024 +0200 refactoring: separaate model & module commit42837f5dab
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu May 2 08:56:36 2024 +0200 fix linting commitded7b60d0c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 15:46:15 2024 +0200 wix the invalid test commit534d692d68
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 15:46:03 2024 +0200 fix field names commit715ff0eb7f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 15:23:39 2024 +0200 remove unused & fix wording commit87036ec719
Merge:be6e6eb96a
bbec2e2960
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 15:02:36 2024 +0200 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commitbe6e6eb96a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 15:02:27 2024 +0200 refactor validation commitbbec2e2960
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed May 1 14:53:42 2024 +0200 Fix test and add symmetry This maybe was a mixup with TestActivityValidation. We now test if the UnmarshalJSON actually threw an error. commit4b2802a6ba
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 14:39:23 2024 +0200 internal refactoring commit6c7cff4f16
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed May 1 14:39:09 2024 +0200 fix NPE commite9fed7a488
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Apr 29 20:13:37 2024 +0200 found NPE commit285e72e4e6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Apr 29 19:51:28 2024 +0200 found issue during test commita9a30fc212
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Apr 29 08:40:46 2024 +0200 remove resolved todo & integration test commit2f2330c450
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun Apr 28 13:52:51 2024 +0200 first integration test commit70ae102597
Merge:df2fd904b3
d6c36ec406
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Apr 26 17:16:15 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commitdf2fd904b3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Apr 26 16:37:16 2024 +0200 drop some words on normalized uri as id commit37ed52cfd9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Apr 26 16:19:31 2024 +0200 start add NormalizedFederatedUri to user commitf687f79ed0
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Apr 26 15:48:56 2024 +0200 start add NormalizedFederatedUri to user commitb878e74f76
Merge:71141a5ff3
37420442de
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 12 14:33:57 2024 +0200 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commit71141a5ff3
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 12 14:33:47 2024 +0200 WIP Refactoring and solving (adding) ToDos commitfb1d0df791
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 12 14:29:32 2024 +0200 Also check for RepoID to be unique commitf3e58f29b0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 12 14:24:38 2024 +0200 Pass unvalidated input to field commitfeca77b040
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 12 13:58:55 2024 +0200 Rename for clearer semantics commit37420442de
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Apr 12 13:52:26 2024 +0200 unify copyright comment commit94091cc144
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 16:38:49 2024 +0200 Don't use TEXT type commit6310e75d8d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 16:33:13 2024 +0200 Update todo commit075857f030
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 16:32:49 2024 +0200 Update docs commit19628b84c6
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 16:00:51 2024 +0200 use context commit80888b80d6
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 16:00:28 2024 +0200 Fix imports commitaf0d0f7745
Merge:bbcb8e7060
9d6389352d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 15:38:11 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commitbbcb8e7060
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 14:21:51 2024 +0200 Bits of format commitbb83a8d85e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 12:58:28 2024 +0200 make fmt commit0eb71098a2
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 12:53:56 2024 +0200 make tidy commite2c9653b33
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 12:47:26 2024 +0200 Update go version and protobuf deps commit2b9977d843
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 11:46:11 2024 +0200 Linting commit511ef0bf5b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 11:24:22 2024 +0200 Use federated staring func commit8579b7f7bb
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 11:21:57 2024 +0200 Use optional.Some commit97343470bc
Merge:213fc3a97d
21b1381e36
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 9 10:42:42 2024 +0200 Merge branch 'forgejo' into forgejo-federated-star commit213fc3a97d
Merge:c908455998
765298814c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Apr 6 10:59:41 2024 +0200 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commitc908455998
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Apr 6 10:59:36 2024 +0200 fix multiple federation in one host commit765298814c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 5 17:07:04 2024 +0200 Add ToDo commit33c60ebdff
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Apr 5 17:06:57 2024 +0200 Add logging commit41f066a1a6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Apr 4 18:33:08 2024 +0200 add notes for setup commit15bb774409
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Apr 4 18:05:55 2024 +0200 add relation details commit8d78c3edca
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Apr 4 15:12:41 2024 +0200 make fmt commitb4e6a7ea3f
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Apr 4 15:09:40 2024 +0200 make lint-go-fix commit92d011f1a5
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Apr 4 15:08:02 2024 +0200 fix some linting issues commit976d79044f
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Apr 4 08:32:37 2024 +0200 show apapiurl in repo settings commit73cf1e3901
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Apr 4 07:22:04 2024 +0200 Revert "added repoUri to federationService" This reverts commit8cd89bf4d3
. commit8cd89bf4d3
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Apr 3 15:39:37 2024 +0200 added repoUri to federationService This does not work yet. APAPI url OR host and id have to be derived from repoUri. commit2b7a22afb3
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Apr 3 12:26:33 2024 +0200 renamed FederatedRepo to FollowingRepo commitdaccaed157
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Apr 3 12:08:44 2024 +0200 Rename federatedRepo to followingRepo commitd240a9bc90
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Apr 3 10:25:40 2024 +0200 trim trailing semicolon commit5671566df6
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Apr 3 09:53:19 2024 +0200 adjust fed repo splitting commit7a142c876e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Apr 2 18:36:22 2024 +0200 remove federated user in case of user deletion commit5edf7d0e61
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Apr 2 17:33:32 2024 +0200 Also trim whitespaces within the list items commit431b4c2829
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Apr 2 12:38:06 2024 +0200 optimize function commit962cd374e2
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Apr 2 12:36:04 2024 +0200 delete federated repos when deleting repository commit8b56159042
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Apr 2 11:13:50 2024 +0200 prevent error when setting no fed repos commit9212fb1633
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Apr 2 09:03:49 2024 +0200 feedback from discussion commitb747342672
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 16:08:29 2024 +0100 separate collecting activities from sending them commit2ad685fd2c
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Mar 28 15:41:43 2024 +0100 fix like target commite2b11b93bc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 15:21:40 2024 +0100 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commitfc8e2b3f8a
Merge:4d5c8b5563
7f19247b0a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 15:05:35 2024 +0100 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commit4d5c8b5563
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 15:00:55 2024 +0100 refactor services commit7f19247b0a
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Mar 28 14:27:50 2024 +0100 Moved sendLikeActivities to federation_service commit1ad7bdf983
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Thu Mar 28 09:36:08 2024 +0100 fixed tests part1, one test still failing commitd624ebb712
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 08:13:00 2024 +0100 use doer coming from api commit992fbf6898
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 28 07:44:22 2024 +0100 comments commit259c0202c7
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Mar 27 19:56:32 2024 +0100 fix test & add some review commit8eae48761f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Mar 27 19:26:55 2024 +0100 add some pictures commite75bcb2f89
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Mar 27 19:02:37 2024 +0100 rename file commit97b5e0da91
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Mar 27 16:20:33 2024 +0100 revise NewForgeLike Also added new test, which still fails since time.Now() does not match commit911e916a4f
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Mar 27 11:33:00 2024 +0100 Added new blog post commita2a5956d79
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Mar 27 09:29:23 2024 +0100 Added context and choices to new adr commitdd37e3a7b8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Mar 27 08:25:16 2024 +0100 wip commita950ba4631
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Mar 27 08:21:44 2024 +0100 prepare state of the month commit84f73d9db8
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 16:56:06 2024 +0100 Add ToDo commit01e9853161
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 16:54:55 2024 +0100 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. commit45cddb4ac7
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 16:53:02 2024 +0100 Add logging commit436466dcad
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 16:21:28 2024 +0100 Check if federation enabled in StarRepo commite9bbdc678b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 16:21:09 2024 +0100 Not using object URL commit04f907c8c8
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 15:28:55 2024 +0100 Revert commit32d457f9a3
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 15:28:36 2024 +0100 StarRepo Wrapper commit0b8aa3105c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 15:28:11 2024 +0100 Create object manually commitb2105de36f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 26 14:39:25 2024 +0100 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. commitbbe5096307
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Mar 26 14:02:30 2024 +0100 fixed circular dependencies next: fix post call error commit7f0371056e
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Mar 26 10:23:14 2024 +0100 moved functionality import of forgefed causes circular dependencies. This has to be solved! commitd251fc2611
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Mar 26 08:28:22 2024 +0100 set federatedRepoList into context commitcf8a30efac
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Mar 26 07:58:04 2024 +0100 mob-next: how to store port & schema commit5b8173f660
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Mar 26 07:36:09 2024 +0100 do not return invalid result commit6d814447d0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Mon Mar 25 16:52:39 2024 +0100 Use Plural commit653ced5596
Author: erik <erik.seiert@meissa-gmbh.de> Date: Mon Mar 25 16:47:18 2024 +0100 Validate before returning commit35d3fc199c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Mon Mar 25 16:35:35 2024 +0100 Rename to StoreFederatedRepo* commitca7d1c6f78
Author: erik <erik.seiert@meissa-gmbh.de> Date: Mon Mar 25 16:30:02 2024 +0100 Localize error messages commit828e7a76f6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Mar 25 09:15:32 2024 +0100 use new table to populate settings commita9d18e5327
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Mar 23 17:01:25 2024 +0100 fixed issues, store now works commitce317c33cb
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Mar 23 15:27:45 2024 +0100 fix context commit950dcd959e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 20:14:20 2024 +0100 implement storage of federated_repo commit6b767684a7
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Mar 22 17:51:20 2024 +0100 Add discussion ToDo commit0f27f0a05b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Mar 22 17:49:29 2024 +0100 Add discussion ToDo commit0f9d1c80be
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Mar 22 17:42:38 2024 +0100 Implement CreateFederatedRepoList commit36c0c1c3c1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Mar 22 17:41:59 2024 +0100 Add DB functionality for federated repos commit288dda282c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Mar 22 17:41:36 2024 +0100 Add more ToDos commit508b4deac8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 08:37:06 2024 +0100 add test & fix compile commit4938d38e39
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 08:08:54 2024 +0100 more review commit9ccad50b05
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 07:52:03 2024 +0100 review commit7316108d56
Merge:7e355986f8
3e6eb255b3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 07:32:30 2024 +0100 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commit7e355986f8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 22 07:32:22 2024 +0100 fix wording commit3e6eb255b3
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 16:29:13 2024 +0100 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 commit0c6c43003c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 16:27:35 2024 +0100 Implement getting APAPIURL for repo and user commited256ca540
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 16:27:08 2024 +0100 Implement NewForgeLike commit2e0584bdf3
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 15:37:37 2024 +0100 Clearer error message "May" is also interchangeable with "could". "Should" fits better in this context. commit84f2aab570
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 14:42:38 2024 +0100 Add todo commit42a41ce2bc
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 14:42:16 2024 +0100 Remove todo commita02ec0363b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 14:42:04 2024 +0100 Add todo commite4242dafd9
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 14:41:11 2024 +0100 Add Function description commit689837b63a
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 12:59:59 2024 +0100 Fix typos commitf327c0da24
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 12:18:29 2024 +0100 Cap max size of federated repo list at 2048 bytes commit6055b4fca0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Mar 21 11:42:12 2024 +0100 Add todo commitb4bb41e0e3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Mar 21 08:25:40 2024 +0100 introduce federated repo commit3b30c678e7
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 16:22:35 2024 +0100 Remove ToDo commitb6035c03ae
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 16:14:54 2024 +0100 Rephrasing for clearness commit2e803e10c0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 16:12:42 2024 +0100 Do not use binding at this stage It wasn't clear how to utilize the "type" field in the .tmpl for our purposes. commit13bf84e89e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 16:12:20 2024 +0100 Implent checking for list of repos commit3dda92b52b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 13:26:46 2024 +0100 Update Locales to reflect changes commitea4471d0db
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 13:22:56 2024 +0100 Remove ToDos commitd1190423bb
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 13:21:17 2024 +0100 Implement single Repo validation and saving POC commit1cbd5e33cb
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 13:16:53 2024 +0100 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. commit584af0486d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Mar 20 13:13:23 2024 +0100 Add Federation specific URL validation commit41da150fb3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Mar 19 19:28:33 2024 +0100 add review comment commit84f236a58d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 15:30:56 2024 +0100 Add more todos commit884e38bdab
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 15:25:52 2024 +0100 WIP Implement proper saving of federated repo urls Added ToDos where relevant commit9337274334
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 13:56:12 2024 +0100 Revert to input commitabc7aa0972
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 13:53:00 2024 +0100 Display data on text area commit048ff5da11
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 13:52:14 2024 +0100 Fix typos commit4c1d12b2e4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 13:52:00 2024 +0100 Use textarea as we expect lots of input commit09cac163e0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 13:17:27 2024 +0100 Add a field for listing the federated repos commita6d45f8b97
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Mar 19 11:56:25 2024 +0100 Implement FederationEnabled function for templates commit26eb01b509
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Mar 19 10:25:20 2024 +0100 corr var label name commit3018769d26
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Mar 19 10:05:31 2024 +0100 Federation settigs :: set label name for internationalisation commit6901ae4b99
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Mar 19 08:29:57 2024 +0100 wip: found backend for settings update commit9dcdf8d828
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Mar 16 12:46:43 2024 +0100 Locales, field & action commitfdcff3cc43
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Mar 8 18:25:37 2024 +0100 found the template for frontend commit93d7de147b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Mar 4 13:57:33 2024 +0100 adjust to new dev-model commite41fa653d9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Mar 4 13:43:16 2024 +0100 fix en name of score :-) commit0e73dfccbb
Merge:e2ca63ca38
db2f896264
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 14 18:23:15 2024 +0100 Merge branch 'forgejo-federated-star' of codeberg.org:meissa/forgejo into forgejo-federated-star commite2ca63ca38
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 14 18:23:10 2024 +0100 Add Malicious Controlled Forge - kudos to gusted commitdb2f896264
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Tue Feb 13 11:09:31 2024 +0100 small fix by adding id as pk for FederatedUser commit086c66b06a
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon Feb 12 13:07:15 2024 +0100 make tidy commit2e41fe0a46
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Mon Feb 12 13:00:47 2024 +0100 fix import commitd65cd5a17a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Feb 12 10:55:00 2024 +0100 ActorID gets source type from NodeInfo commit181d743a8a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Feb 12 10:14:29 2024 +0100 update copyright commit9662aee375
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Feb 12 10:14:16 2024 +0100 reflect hard fork commit6e6813a88b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 18:17:40 2024 +0100 make operatorid unique commit6d17f45986
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 17:56:17 2024 +0100 fix misspell commiteecb9b8040
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 17:46:27 2024 +0100 fmt fix commit664144930e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 17:10:59 2024 +0100 result of lint-fix commit5fa62287d6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 17:00:21 2024 +0100 undo rebase conflicts commit3ef57385ec
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 16:44:03 2024 +0100 fix linting commit3b244d673b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 16:24:51 2024 +0100 small fixes commitac82486a95
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 15:31:58 2024 +0100 This months blog commit8917bfca0c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 15:12:49 2024 +0100 add a arch federation overview commit94937abc04
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 9 15:12:26 2024 +0100 Source is no longer needed - see adr-federated-star commitb2cc848e7d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 15:31:02 2024 +0100 clean up aliases commite733809ef2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 15:16:37 2024 +0100 symetric handling for value/reference commitd2d5e84977
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 15:16:02 2024 +0100 federated user is not entity - so no need for ID commit91f7541add
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 13:31:27 2024 +0100 refactor for semantic and cycle free deps commit66bc7a9a0c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 11:09:55 2024 +0100 Search federatedUser instead of loginName commite44be72251
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 8 09:56:49 2024 +0100 Add tx around user creation commitedf7f61b83
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 7 17:11:43 2024 +0100 mv federated_user_creation to user package commite180467760
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Feb 7 16:42:40 2024 +0100 added user creation from ap commita702da69cc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 7 16:12:23 2024 +0100 added test for federated user commit67f3f66be4
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Feb 7 15:37:48 2024 +0100 Created FederatedUser commite477181e23
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Wed Feb 7 15:03:21 2024 +0100 fix typos commita1ca7e958a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 7 14:59:39 2024 +0100 use local fqdn for generated user email commit5a7f6f15a6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 7 14:30:17 2024 +0100 ensure federation info fqdn to lowercase commite05c810823
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Feb 7 13:52:25 2024 +0100 document usermapping chosen commite255f73731
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Feb 6 13:30:09 2024 +0100 make class diagram more accurate commit7db83688db
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Feb 6 12:45:33 2024 +0100 updated rebase process commited99dfa993
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Feb 2 17:25:02 2024 +0100 new threats thx to gusted commit56660e3a0b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Feb 1 15:48:56 2024 +0100 add aspect resulting from our discussion commitb02b8a307c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun Jan 28 12:48:44 2024 +0100 fix wording commitc45e726383
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun Jan 28 12:43:56 2024 +0100 fix wording commit5ef823e3af
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 27 15:03:37 2024 +0100 adjust urls to changed username commita08e435a1e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 26 17:16:26 2024 +0100 updated rebase instructions commit6b14d1a562
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 26 16:13:55 2024 +0100 updated rebase instructions commit49b014f28f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 19 16:33:59 2024 +0100 add reply attack to blog commitc58a995fb2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 19 16:26:16 2024 +0100 refactor FederationInfo -> FederationHost commite926ea16e2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 18 20:06:56 2024 +0100 improve english .. commite1f27a950c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 18 20:01:22 2024 +0100 improve english .. commit2c55c0252f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 18 19:48:36 2024 +0100 prepare discussion commit2b5360a000
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 18 19:20:15 2024 +0100 work on adr commita6b7cc8e70
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 18 19:20:02 2024 +0100 update needed modules commit0453598e3d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Jan 16 09:31:36 2024 +0100 add some todos commit48c6d62e47
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Jan 16 09:31:27 2024 +0100 blog: newest on top commitc6981cdbf6
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Jan 16 08:28:12 2024 +0100 proposals for federatedPerson Mapping commite2291fec1e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Jan 15 08:12:40 2024 +0100 think about federated persons commit5a88eef78e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Jan 15 08:12:26 2024 +0100 Propose the current solution commit0ddc2db46a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun Jan 14 14:53:00 2024 +0100 mitigate Block by future StartTime commit1b35bd2911
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sun Jan 14 13:03:51 2024 +0100 lint fix commitf25eab35fc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 13 17:16:43 2024 +0100 Update for new implementation commitc4eb763f4a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 13 17:06:40 2024 +0100 lint fix commit9a9ac33766
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 13 16:22:49 2024 +0100 lint fix commitca5eaa8c6b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 13 16:08:12 2024 +0100 introduce FI Factory commitdabd773f6b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Jan 13 14:17:11 2024 +0100 Fix error handling & add timestamp check commit40ec049013
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 12 18:12:22 2024 +0100 add the next todo commit7d30d14c76
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Fri Jan 12 17:49:07 2024 +0100 breaking struct adjustment commit1f989f2ecd
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Fri Jan 12 17:27:52 2024 +0100 Added FederationInfo Create function commit380d3db0bf
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 12 17:00:17 2024 +0100 integrate federation info in api call commit52400f7978
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Fri Jan 12 16:12:54 2024 +0100 Added FederationInfo get methods for repository commitbbccc24ed1
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 12 15:34:34 2024 +0100 test federationinfo validation commit9c37272ee9
Author: Clemens <clemens.geibel@meissa-gmbh.de.de> Date: Fri Jan 12 14:57:22 2024 +0100 make validateNotEmpty more generic commitc67be3b668
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 12 14:35:43 2024 +0100 start work on federationinfo commit8610d94af8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 12 14:33:52 2024 +0100 start work on federationinfo commit12558d62c8
Author: bom <mattis.boeckle@meissa-gmbh.de> Date: Fri Jan 12 12:43:14 2024 +0100 Remove MaxConnsPerHost limit for outgoing connections commit87bfa79f71
Author: bom <mattis.boeckle@meissa-gmbh.de> Date: Fri Jan 12 12:29:00 2024 +0100 Configure client against DOS commitecf391dcbf
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Jan 9 09:14:52 2024 +0100 add some user creation unittests commitde2569618c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Jan 8 18:21:55 2024 +0100 fix: wmail should start with char commitf0af660cf9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 18:19:46 2024 +0100 give names to threats commita8b132da80
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 17:43:18 2024 +0100 provide the next testing commit2d98b22604
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 17:11:20 2024 +0100 blog the next test release commit0fac86a384
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 16:42:57 2024 +0100 update to new star activity commit42eab2d304
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 12:03:36 2024 +0100 add test-release-branch commit680213b479
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 11:43:52 2024 +0100 translate scoring commit1fc1dda59d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 11:40:35 2024 +0100 Fix wording commitb978642da0
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Jan 5 11:34:32 2024 +0100 improve sequence commitfe9f26305f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 4 18:25:43 2024 +0100 update ThreatAnalysis for Like Aktivity commit6e46739090
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Jan 4 18:04:46 2024 +0100 validate person commit0505baab2b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Jan 3 18:52:41 2024 +0100 ad validation for like activity commit3ab2d9a449
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Jan 3 18:29:12 2024 +0100 rename star -> ForgeLike commit4473fb788a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Jan 3 18:10:24 2024 +0100 start refactoring star->like commit38438b592f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 18:09:27 2023 +0100 rebase conflicts to fix commitf673dd1ca7
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 16:31:52 2023 +0100 source no longer needed commit084eed82a4
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 16:30:58 2023 +0100 use federate-repo users for our local test commitb2a9b53041
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 15:54:13 2023 +0100 use nodeInfo.Source instead of startActivity.Source commit8116214727
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 15:48:45 2023 +0100 introduce nodeinfo commit587bd07372
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 15:48:31 2023 +0100 mv more fkt to http-client commit310d740cee
Author: bom <mattis.boeckle@meissa-gmbh.de> Date: Fri Dec 29 12:10:07 2023 +0100 Start NodeInfo implementation commit3c2493902d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 29 09:43:10 2023 +0100 adjust to ugly linting commite704e5adcc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 22 15:10:21 2023 +0100 adjust to ugly linting commit1e40b814a1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 22 15:00:42 2023 +0100 Linting commit8585edc47a
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 22 14:52:10 2023 +0100 Linting commit7d78fb8adc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 22 14:47:34 2023 +0100 adjust to ugly linting commita64ce2feb1
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 22 14:20:30 2023 +0100 removed resolved todos commit2e031a9763
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 22 13:44:45 2023 +0100 WIP Generic IsValid for *Id structs commite69e5df089
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 22 13:42:07 2023 +0100 Assume validated url.URL for NewActorID commit6e4467d49d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 22 11:48:24 2023 +0100 experiment on generalization commit75cc5b900d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 22 10:19:01 2023 +0100 Add review todo commit1dd3084f66
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 21 15:01:49 2023 +0100 Split test according to actor.go commit48cfb521d1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 21 14:22:42 2023 +0100 Add suffix checking helper commitc887bddb72
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 21 14:22:23 2023 +0100 Attempt generalization of Id creation commit15775ad891
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 21 14:21:47 2023 +0100 Fix import commit715afb2468
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 21 09:30:07 2023 +0100 Add newlines for readability commitfff4c3f9fc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 20 20:12:31 2023 +0100 fix typo commit5317832fef
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 20 13:04:40 2023 +0100 odd one mor picture to the blog commit433a38699a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 20 12:55:28 2023 +0100 improve test description commit65e3f1d0ed
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 20 09:33:29 2023 +0100 update adr lining out a second option commit4d1492831d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 20 12:30:22 2023 +0100 Move char_limiter to utils and rename commitafc9acd925
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 20 12:23:13 2023 +0100 Limit number of characters on body log commit3363b3bf0c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 20 12:22:03 2023 +0100 Validate response before further processing commit2f4b1a5cd4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 20 12:20:41 2023 +0100 Use id of existing repo for convenience commitff146a9430
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 20 11:27:44 2023 +0100 Add review todos commit071b47b8d0
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 19 12:26:55 2023 +0100 Catch edge case: remote user does not exist on remote repo commit0378b2dc7d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 19 10:55:30 2023 +0100 Add questions for review discussion commit8a8b6821ba
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 19 11:32:57 2023 +0100 Fix bash code block commit3327fbc39a
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 19 10:19:35 2023 +0100 Fix typos, small rewordings commitbd640a7099
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Dec 19 09:21:23 2023 +0100 add some pros to the source field commit70fbfd6cf3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Dec 19 08:36:02 2023 +0100 reflect the discussion with kik commitf636de050a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 16 18:47:39 2023 +0100 some improvements commitbc7515fa31
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 16 18:45:14 2023 +0100 some improvements commitf9bbb91f11
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 16 18:38:31 2023 +0100 expose instance for tests commit1704ac5bc2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 15 16:02:50 2023 +0100 fix most of the tests commit9e6c45f87d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 15 15:37:00 2023 +0100 make flows more precise commite1d7db178c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 15 14:45:20 2023 +0100 unify logging & minor improvements commit42854c9003
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 13 16:49:23 2023 +0100 remove global actionUser commita0c008b880
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 13 16:44:11 2023 +0100 cleand up user creation from ap commit6de8fba14d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 13 16:06:53 2023 +0100 minor refactorings commit44e10ed65a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 13 16:06:37 2023 +0100 get wo body commitc2a42587d2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Dec 12 11:08:57 2023 +0100 remove panics - that is not a exception replacement commitb27460d3fe
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Dec 12 11:04:03 2023 +0100 minor refactorings & reviews commite893618cdc
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Dec 11 08:14:18 2023 +0100 add more threats commit9633a2005a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 19:23:48 2023 +0100 add a sql injection threat commitbad8e04c3c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 19:11:38 2023 +0100 cleanup & minor refactorings commit3172eb69d2
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 18:30:47 2023 +0100 introduce RepositoryId commit1fe35e14a5
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 14:53:40 2023 +0100 mv our actor code to forgefed commitabdf56dde1
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 14:27:29 2023 +0100 move forgefed to models commit0b2cf2a55b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Sat Dec 9 14:26:49 2023 +0100 remov unused experiments commit184388015d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 20:51:54 2023 +0100 added more tests commitb5a467e94d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 20:37:26 2023 +0100 remove unused & implement webfinger commit73a38ea0d1
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 19:52:09 2023 +0100 use new factory function commite8371ca94c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 19:43:49 2023 +0100 ActorId -> PersonId commit3151c8fe81
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 19:41:22 2023 +0100 make validate more compact commitbe4d3544ae
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 18:33:26 2023 +0100 Refactor ActorID -> ActorId commit7c86f13728
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 18:09:22 2023 +0100 make route more compact commitafcc7f0def
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 18:08:54 2023 +0100 factory instead of parse & validate commit6fef54ed1c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 8 18:08:16 2023 +0100 there is a validation module commita10a9141f8
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 8 15:44:00 2023 +0100 Remove useless call to repo, add todos commit3c515c2614
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 8 11:54:07 2023 +0100 Add review todos commit22d71e6b30
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:53:37 2023 +0100 Update ToDo commitafe659f9f4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:54:07 2023 +0100 Implement 5s waiting commit745598bba4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:24:01 2023 +0100 Implement starring commit976256bf3d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:21:26 2023 +0100 Refactor if conditional to switch, use split up functions commit75ee273f40
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:18:33 2023 +0100 Split user creation and saving user to db commit7f4667696f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 13:17:51 2023 +0100 Cleanup imports commit6ad52a6d67
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 12:03:42 2023 +0100 Update tests commit25d34e0c14
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 12:03:28 2023 +0100 Check for empty path in IRI commitf84e0b27e1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 11:45:24 2023 +0100 Use ValidateAndParseIRI, pass this to ParseActorID commitfa1acd1ebb
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 11:44:59 2023 +0100 Extract url string validation and parsing from ActorID parsing commit4d3ab4dda2
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 11:24:47 2023 +0100 Update Validate() commit39d4c8dd2d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 11:24:27 2023 +0100 Generalize validate_is_not_empty commit085db0c127
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 10:51:58 2023 +0100 Remove todo commit54ef78034e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 10:51:03 2023 +0100 Don't parse received repoID commite3defaa212
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 10:44:35 2023 +0100 Split getPersonByRest function This leaves us with two easier to read functions, encapsulating two different functionalities. commitbdddde8b68
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Dec 7 10:42:05 2023 +0100 Fix erroneous param and deprecated --name commit28a290da10
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 6 18:32:26 2023 +0100 reviewed current work commit02dc8901af
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 16:14:50 2023 +0100 Fix tests commit68cd621053
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 16:14:39 2023 +0100 Test for empty string commitd27cac5bae
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:56:26 2023 +0100 Move federated user creation to func commit01506f9836
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:50:38 2023 +0100 Clearer description commit77b6402e77
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:37:58 2023 +0100 Add missing error treatment commit946e5cf34c
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:37:14 2023 +0100 Remove typo in func commitc0f1681fa3
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:16:01 2023 +0100 Allow parsing of repository-id too commit4f25e5057a
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:15:39 2023 +0100 Make the source an argument to the parser commit2fb893843b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 15:13:53 2023 +0100 Move getting person to own function commit6d143e74cf
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 13:36:26 2023 +0100 More clear distinction between sender and receiver of star commit52e950a492
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 13:06:30 2023 +0100 Check the path for empty strings commit65f7124c67
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 12:05:47 2023 +0100 Use u.Hostname() instead of u.Host u.Host returns hostname:port. commit27c9db1027
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Dec 6 11:24:42 2023 +0100 Better function descriptions commit9b5d8bbeda
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Dec 6 09:07:09 2023 +0100 If we use user.loginname to store the actor.id we can search for local users earlier commited1af14ceb
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 14:54:03 2023 +0100 Panic on error, use correct function names commit9dcbe0177e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 14:53:10 2023 +0100 Rename targe to remoteStargazer commitde9e4dea61
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 14:52:33 2023 +0100 Update todos, remove comments commit68cc74d139
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 14:50:46 2023 +0100 Use actionsUser for creating http client commitd65e5aa70e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 14:49:27 2023 +0100 Move helper functions to top commit1c145d9d68
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Dec 5 12:19:22 2023 +0100 WIP: fit generateUUIDMail for testing purposes commit11e93784fe
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Dec 5 11:46:11 2023 +0100 WIP: log Info User created commita20f535211
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Dec 5 11:38:36 2023 +0100 WIP: pwdgen, username commit85e09a7ada
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Dec 5 10:37:51 2023 +0100 WIP: Generate User if not exists commit94880d64f4
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Dec 5 09:26:03 2023 +0100 higlight the need for id normalization commit231bdb65b8
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Dec 1 17:06:39 2023 +0100 searching for the local person commitedd7fb77fd
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 1 15:07:13 2023 +0100 WIP create user if not exists commit159f3dc3aa
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Nov 30 17:41:08 2023 +0100 describe the current state commit41e12d09ef
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Dec 1 11:56:12 2023 +0100 WIP create User from person commitc8456d57ff
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 30 16:10:26 2023 +0100 Add thoughts on user creation commitc61be31c72
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 30 16:04:26 2023 +0100 Remove redundant person implementation commit22ba03ae4d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 30 16:01:20 2023 +0100 Don't use redundant implementation of person commitb00b5fa7af
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 30 16:00:39 2023 +0100 Add some thoughts on repo testing commiteab016e896
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Nov 29 09:21:54 2023 +0100 add threat analyses commita8d5e7ba77
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 15:45:04 2023 +0100 Fix typos and format commitd43c4ba739
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 15:34:02 2023 +0100 Use person generation commit9f016d3673
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 15:33:22 2023 +0100 Move to extra var commit7071117864
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 15:32:15 2023 +0100 Implement Person creation commitfde8de4f90
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 13:26:35 2023 +0100 Rename to ParseActorIDFromStarActivity commit2c4089ba1d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 13:24:59 2023 +0100 Add star json with links to lokalhost commitede86df685
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 29 11:46:24 2023 +0100 Remove todo commit7529b9da91
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 15:17:59 2023 +0100 Note ToDos for setting up useful tests commite60d89cb67
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 15:17:34 2023 +0100 Use correct target for get request commit0388240039
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 13:03:45 2023 +0100 WIP Use non generated HTTP client commit4b490802d7
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 13:03:07 2023 +0100 Test creation of client only commit61afc65377
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 10:55:53 2023 +0100 Implement Get method on Client struct commit56d11bbff4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 28 10:55:18 2023 +0100 Don't hardcode method in NewRequest function commit8a53331283
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 14:01:32 2023 +0100 Add ToDo commit93d79646de
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 13:56:53 2023 +0100 Fix api url commit9568eab62a
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 13:23:03 2023 +0100 Fix tests commit6284355e1e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 12:51:36 2023 +0100 Remove redundant ValidateStar and err check, call coorect function commit43ac3ddca9
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 12:50:15 2023 +0100 Remove star validation as it happens in actor validation now commit566b3bc459
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 12:49:36 2023 +0100 Parse Actor from star activity, Update function declaration order commit3a938b6c3f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 12:48:14 2023 +0100 Use and validate source in ActorID struct commit546ce50337
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 11:40:12 2023 +0100 Use PanicIfInvalid in repository.go commit9566e9bc5d
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 11:38:01 2023 +0100 Change tests to use IsValid method commitfccf5c37ca
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 11:37:29 2023 +0100 Add IsValid and PanicIfInvalid methods for ActorID commit8300d3fbde
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 24 09:55:47 2023 +0100 Add ToDos from code review commit34c511ae98
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 17:04:58 2023 +0100 Use data from actor, improve formatting commitaee2ee2596
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 17:04:22 2023 +0100 Also log error on person creation commit91baf2be32
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 17:03:24 2023 +0100 Add get functions for userId and HostAndPort commit92c089a4e2
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 17:02:54 2023 +0100 Add a test for getting host and port commit863b340622
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 17:02:36 2023 +0100 Update dev notes with create repo curl cmd commit8657f70960
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 14:50:32 2023 +0100 Add todo commit5efce01f6f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 23 14:17:35 2023 +0100 Make test messages consistent commitad8adc880f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 16:40:28 2023 +0100 Create easier to read tests for parser and validator commit62eae6564f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 16:40:03 2023 +0100 Fix bug in validation commitd205c50a43
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 16:08:14 2023 +0100 Implement generic validation on ActorID commit7b5d13a625
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 15:27:44 2023 +0100 Split check for schema and host commit3d2b5115ad
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 15:25:43 2023 +0100 Implement and use Validatable interface commit235ed7cd1e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 22 13:28:13 2023 +0100 Rename to actorID commit5e111f14ef
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 17:20:36 2023 +0100 use the swagger-api commit109dbd7d75
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 17:20:22 2023 +0100 swager generated api commit07bd30cf20
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 17:19:53 2023 +0100 exosy has moved this package to service commit604f0a2477
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 17:19:08 2023 +0100 swagger client generation commit9e74de829e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 13:38:20 2023 +0100 swagger client generation commitbc1ff23b23
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 10:49:01 2023 +0100 swagger client generation commitd81647b36e
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 10:37:47 2023 +0100 wip: swagger client generation commita954c9764f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 10:10:28 2023 +0100 wip: swagger client generation commitfbff67f11a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 10:10:04 2023 +0100 add some more todos commit5c998a5c46
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 17 08:22:27 2023 +0100 add comment commit5729cee3e5
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 16:04:50 2023 +0100 Move test to model/activitypub commit7193c0bd9b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 16:03:05 2023 +0100 WIP test for parsing the actor commit0c367070af
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 15:06:41 2023 +0100 Call validate star commitb1f3706575
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 15:02:59 2023 +0100 Introduce validation against source commit78fc75135f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 15:02:20 2023 +0100 Rename to ActorData commit09058c13c5
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 14:53:54 2023 +0100 Rename to actor commit91dcd59e68
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 14:50:01 2023 +0100 Import parser from model and call validation commit273ca49e22
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 16 14:49:05 2023 +0100 Validate on ActorData independently and move to model commite44321221e
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 15:07:23 2023 +0100 WIP: Add test for parser commitad65976677
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 14:27:47 2023 +0100 Reorder functions commitd52bb4bf8f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 12:31:16 2023 +0100 Remove newline from error string commitb869d91dc1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 12:29:17 2023 +0100 Parse Actor URL commit7541251d63
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 12:28:26 2023 +0100 Correct API urls commit9fa8d19cf4
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 12:10:31 2023 +0100 Fix typo commitd10c1094d9
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Nov 15 09:23:03 2023 +0100 add some pseudocode commitab92891091
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 08:59:55 2023 +0100 Use actor commitb085ce37a6
Author: erik <erik.seiert@meissa-gmbh.de> Date: Wed Nov 15 08:53:02 2023 +0100 Review commitd7abff31f6
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 15:29:13 2023 +0100 Add ToDos commitd2b464582f
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 15:29:00 2023 +0100 Add ToDo commite18e90f8df
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 15:28:38 2023 +0100 Add fieldname and type commitf48b4d1f55
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 15:27:32 2023 +0100 Get Activity field from star commite8013250b8
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 14:56:16 2023 +0100 Add question commit7790e98f47
Author: erik <erik.seiert@meissa-gmbh.de> Date: Tue Nov 14 14:53:47 2023 +0100 Remove unused funcs and structs commit51cb9aded0
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Nov 15 09:08:17 2023 +0100 generate ap-person client commit14c74f27cb
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 17:00:08 2023 +0100 tests are now working commitd28ea1a30b
Author: bom <mattis.boeckle@meissa-gmbh.de> Date: Fri Nov 10 16:43:44 2023 +0100 Start implementing UnmarshalJSON for Star commit43014ca473
Author: bom <mattis.boeckle@meissa-gmbh.de> Date: Fri Nov 10 16:08:15 2023 +0100 Implement MarshallJSON for Star activity commita1885a5767
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 15:13:26 2023 +0100 star: test first commit1044e44ee5
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 14:51:33 2023 +0100 we got a parsed actor commitb08580280a
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 14:37:36 2023 +0100 np in case of unauthenticated user commit6c1ec05458
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 14:37:00 2023 +0100 extract the relevant app.ini parts commit460e2fb644
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 10 14:10:23 2023 +0100 prepare next steps commit5b01517c12
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 10 14:26:13 2023 +0100 Get data from form commite846e8225b
Author: erik <erik.seiert@meissa-gmbh.de> Date: Fri Nov 10 14:06:17 2023 +0100 Update dev-notes commita1e9783cec
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Nov 9 21:59:51 2023 +0100 expose star activity to swagger commitd7dfdca8b9
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 9 15:38:55 2023 +0100 WIP Add star to swagger commit17dfc7bdc1
Author: erik <erik.seiert@meissa-gmbh.de> Date: Thu Nov 9 14:24:19 2023 +0100 Clearer wording, fix typos commit07cf963af3
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Thu Nov 9 21:54:17 2023 +0100 expose star activity to swagger commitdc1a82bf4c
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Wed Nov 8 08:56:22 2023 +0100 use star as swagger model commit18f4c514ec
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Nov 7 18:01:52 2023 +0100 add one more step to rebase procedure commit46fb4fec8f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Nov 7 09:30:32 2023 +0100 add star activity & bind to swagger commitff5a4405fd
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 18:29:48 2023 +0100 introduce repo from exosy commit157effdd8f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 18:29:24 2023 +0100 adjust star activity example commita0efbf7d72
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 09:27:41 2023 +0100 improve git-setup-doc commit1f80e99857
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 09:12:09 2023 +0100 improve git-setup-doc commitcde603dd0e
Author: Mirco <mirco.zachmann@meissa.de> Date: Fri Nov 3 17:58:47 2023 +0100 improve git sync procedure commit7195141805
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 08:50:36 2023 +0100 wip: lets define the post input more close commit6587b6d62b
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Nov 6 08:49:58 2023 +0100 log who is doing the inbox post commit4e1e65e14f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 3 17:45:53 2023 +0100 log repository under activity commitfe6f625923
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 3 17:45:21 2023 +0100 temp deactivate security commitb7082b7e98
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Nov 3 17:05:48 2023 +0100 improve rebase procedure commit87324d1553
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 20:14:52 2023 +0200 ctx action should no be good enough commit0d5702e501
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 20:13:51 2023 +0200 fill in some minimal information to an actor commit6ceb1d2040
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 20:13:24 2023 +0200 add f3 dep commit0572725204
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 14:33:14 2023 +0200 add some rought branch sync description commitfe2a3d86d4
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 14:10:13 2023 +0200 get repo now works somehow commitda7a38b03d
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 13:24:05 2023 +0200 enable federation commit64abf87fb0
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 12:12:31 2023 +0200 added some logs commit3dbcf34a16
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 27 11:50:39 2023 +0200 share dev notes commit511ab65df4
Author: Mirco <mirco.zachmann@meissa.de> Date: Tue Oct 24 10:34:53 2023 +0200 Fix syntax error, unexpected new line commit154be0a637
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue Oct 24 09:10:31 2023 +0200 wip: compile one step further commit317b7fac8f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Mon Oct 23 17:16:38 2023 +0200 wip: load repo to ctx commit643681663f
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 20 16:27:55 2023 +0200 add activity sequence commit68318f2632
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 20 16:12:37 2023 +0200 considerations about star activity commitd4f507a223
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 20 15:45:12 2023 +0200 remove unused imports commita87cbda165
Author: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Fri Oct 20 15:16:04 2023 +0200 add repository actor
369 lines
12 KiB
Go
369 lines
12 KiB
Go
// Copyright 2024 The Forgejo Authors c/o Codeberg e.V.. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package integration
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
"net/http/httptest"
|
|
"strings"
|
|
"testing"
|
|
|
|
"code.gitea.io/gitea/models/db"
|
|
"code.gitea.io/gitea/models/forgefed"
|
|
git_model "code.gitea.io/gitea/models/git"
|
|
repo_model "code.gitea.io/gitea/models/repo"
|
|
unit_model "code.gitea.io/gitea/models/unit"
|
|
"code.gitea.io/gitea/models/unittest"
|
|
user_model "code.gitea.io/gitea/models/user"
|
|
fm "code.gitea.io/gitea/modules/forgefed"
|
|
"code.gitea.io/gitea/modules/optional"
|
|
"code.gitea.io/gitea/modules/setting"
|
|
"code.gitea.io/gitea/modules/validation"
|
|
gitea_context "code.gitea.io/gitea/services/context"
|
|
repo_service "code.gitea.io/gitea/services/repository"
|
|
user_service "code.gitea.io/gitea/services/user"
|
|
"code.gitea.io/gitea/tests"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRepoSettingsUnits(t *testing.T) {
|
|
defer tests.PrepareTestEnv(t)()
|
|
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: "user2"})
|
|
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{OwnerID: user.ID, Name: "repo1"})
|
|
session := loginUser(t, user.Name)
|
|
|
|
req := NewRequest(t, "GET", fmt.Sprintf("%s/settings/units", repo.Link()))
|
|
session.MakeRequest(t, req, http.StatusOK)
|
|
}
|
|
|
|
func TestRepoAddMoreUnitsHighlighting(t *testing.T) {
|
|
defer tests.PrepareTestEnv(t)()
|
|
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: "user2"})
|
|
session := loginUser(t, user.Name)
|
|
|
|
// Make sure there are no disabled repos in the settings!
|
|
setting.Repository.DisabledRepoUnits = []string{}
|
|
unit_model.LoadUnitConfig()
|
|
|
|
// Create a known-good repo, with some units disabled.
|
|
repo, _, f := CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
|
unit_model.TypeCode,
|
|
unit_model.TypePullRequests,
|
|
unit_model.TypeProjects,
|
|
unit_model.TypeActions,
|
|
unit_model.TypeIssues,
|
|
unit_model.TypeWiki,
|
|
}, []unit_model.Type{unit_model.TypePackages}, nil)
|
|
defer f()
|
|
|
|
setUserHints := func(t *testing.T, hints bool) func() {
|
|
saved := user.EnableRepoUnitHints
|
|
|
|
assert.NoError(t, user_service.UpdateUser(db.DefaultContext, user, &user_service.UpdateOptions{
|
|
EnableRepoUnitHints: optional.Some(hints),
|
|
}))
|
|
|
|
return func() {
|
|
assert.NoError(t, user_service.UpdateUser(db.DefaultContext, user, &user_service.UpdateOptions{
|
|
EnableRepoUnitHints: optional.Some(saved),
|
|
}))
|
|
}
|
|
}
|
|
|
|
assertHighlight := func(t *testing.T, page, uri string, highlighted bool) {
|
|
t.Helper()
|
|
|
|
req := NewRequest(t, "GET", fmt.Sprintf("%s/settings%s", repo.Link(), page))
|
|
resp := session.MakeRequest(t, req, http.StatusOK)
|
|
htmlDoc := NewHTMLParser(t, resp.Body)
|
|
|
|
htmlDoc.AssertElement(t, fmt.Sprintf(".overflow-menu-items a[href='%s'].active", fmt.Sprintf("%s/settings%s", repo.Link(), uri)), highlighted)
|
|
}
|
|
|
|
t.Run("hints enabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
defer setUserHints(t, true)()
|
|
|
|
t.Run("settings", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
|
|
// Visiting the /settings page, "Settings" is highlighted
|
|
assertHighlight(t, "", "", true)
|
|
// ...but "Add more" isn't.
|
|
assertHighlight(t, "", "/units", false)
|
|
})
|
|
|
|
t.Run("units", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
|
|
// Visiting the /settings/units page, "Add more" is highlighted
|
|
assertHighlight(t, "/units", "/units", true)
|
|
// ...but "Settings" isn't.
|
|
assertHighlight(t, "/units", "", false)
|
|
})
|
|
})
|
|
|
|
t.Run("hints disabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
defer setUserHints(t, false)()
|
|
|
|
t.Run("settings", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
|
|
// Visiting the /settings page, "Settings" is highlighted
|
|
assertHighlight(t, "", "", true)
|
|
// ...but "Add more" isn't (it doesn't exist).
|
|
assertHighlight(t, "", "/units", false)
|
|
})
|
|
|
|
t.Run("units", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
|
|
// Visiting the /settings/units page, "Settings" is highlighted
|
|
assertHighlight(t, "/units", "", true)
|
|
// ...but "Add more" isn't (it doesn't exist)
|
|
assertHighlight(t, "/units", "/units", false)
|
|
})
|
|
})
|
|
}
|
|
|
|
func TestRepoAddMoreUnits(t *testing.T) {
|
|
defer tests.PrepareTestEnv(t)()
|
|
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: "user2"})
|
|
session := loginUser(t, user.Name)
|
|
|
|
// Make sure there are no disabled repos in the settings!
|
|
setting.Repository.DisabledRepoUnits = []string{}
|
|
unit_model.LoadUnitConfig()
|
|
|
|
// Create a known-good repo, with all units enabled.
|
|
repo, _, f := CreateDeclarativeRepo(t, user, "", []unit_model.Type{
|
|
unit_model.TypeCode,
|
|
unit_model.TypePullRequests,
|
|
unit_model.TypeProjects,
|
|
unit_model.TypePackages,
|
|
unit_model.TypeActions,
|
|
unit_model.TypeIssues,
|
|
unit_model.TypeWiki,
|
|
}, nil, nil)
|
|
defer f()
|
|
|
|
assertAddMore := func(t *testing.T, present bool) {
|
|
t.Helper()
|
|
|
|
req := NewRequest(t, "GET", repo.Link())
|
|
resp := session.MakeRequest(t, req, http.StatusOK)
|
|
htmlDoc := NewHTMLParser(t, resp.Body)
|
|
htmlDoc.AssertElement(t, fmt.Sprintf("a[href='%s/settings/units']", repo.Link()), present)
|
|
}
|
|
|
|
t.Run("no add more with all units enabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
|
|
assertAddMore(t, false)
|
|
})
|
|
|
|
t.Run("add more if units can be enabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
defer func() {
|
|
repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, []repo_model.RepoUnit{{
|
|
RepoID: repo.ID,
|
|
Type: unit_model.TypePackages,
|
|
}}, nil)
|
|
}()
|
|
|
|
// Disable the Packages unit
|
|
err := repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, nil, []unit_model.Type{unit_model.TypePackages})
|
|
assert.NoError(t, err)
|
|
|
|
assertAddMore(t, true)
|
|
})
|
|
|
|
t.Run("no add more if unit is globally disabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
defer func() {
|
|
repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, []repo_model.RepoUnit{{
|
|
RepoID: repo.ID,
|
|
Type: unit_model.TypePackages,
|
|
}}, nil)
|
|
setting.Repository.DisabledRepoUnits = []string{}
|
|
unit_model.LoadUnitConfig()
|
|
}()
|
|
|
|
// Disable the Packages unit globally
|
|
setting.Repository.DisabledRepoUnits = []string{"repo.packages"}
|
|
unit_model.LoadUnitConfig()
|
|
|
|
// Disable the Packages unit
|
|
err := repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, nil, []unit_model.Type{unit_model.TypePackages})
|
|
assert.NoError(t, err)
|
|
|
|
// The "Add more" link appears no more
|
|
assertAddMore(t, false)
|
|
})
|
|
|
|
t.Run("issues & ext tracker globally disabled", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
defer func() {
|
|
repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, []repo_model.RepoUnit{{
|
|
RepoID: repo.ID,
|
|
Type: unit_model.TypeIssues,
|
|
}}, nil)
|
|
setting.Repository.DisabledRepoUnits = []string{}
|
|
unit_model.LoadUnitConfig()
|
|
}()
|
|
|
|
// Disable both Issues and ExternalTracker units globally
|
|
setting.Repository.DisabledRepoUnits = []string{"repo.issues", "repo.ext_issues"}
|
|
unit_model.LoadUnitConfig()
|
|
|
|
// Disable the Issues unit
|
|
err := repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, nil, []unit_model.Type{unit_model.TypeIssues})
|
|
assert.NoError(t, err)
|
|
|
|
// The "Add more" link appears no more
|
|
assertAddMore(t, false)
|
|
})
|
|
}
|
|
|
|
func TestProtectedBranch(t *testing.T) {
|
|
defer tests.PrepareTestEnv(t)()
|
|
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
|
|
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1, OwnerID: user.ID})
|
|
session := loginUser(t, user.Name)
|
|
|
|
t.Run("Add", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
link := fmt.Sprintf("/%s/settings/branches/edit", repo.FullName())
|
|
|
|
req := NewRequestWithValues(t, "POST", link, map[string]string{
|
|
"_csrf": GetCSRF(t, session, link),
|
|
"rule_name": "master",
|
|
"enable_push": "true",
|
|
})
|
|
session.MakeRequest(t, req, http.StatusSeeOther)
|
|
|
|
// Verify it was added.
|
|
unittest.AssertExistsIf(t, true, &git_model.ProtectedBranch{RuleName: "master", RepoID: repo.ID})
|
|
})
|
|
|
|
t.Run("Add duplicate", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
link := fmt.Sprintf("/%s/settings/branches/edit", repo.FullName())
|
|
|
|
req := NewRequestWithValues(t, "POST", link, map[string]string{
|
|
"_csrf": GetCSRF(t, session, link),
|
|
"rule_name": "master",
|
|
"require_signed_": "true",
|
|
})
|
|
session.MakeRequest(t, req, http.StatusSeeOther)
|
|
flashCookie := session.GetCookie(gitea_context.CookieNameFlash)
|
|
assert.NotNil(t, flashCookie)
|
|
assert.EqualValues(t, "error%3DThere%2Bis%2Balready%2Ba%2Brule%2Bfor%2Bthis%2Bset%2Bof%2Bbranches", flashCookie.Value)
|
|
|
|
// Verify it wasn't added.
|
|
unittest.AssertCount(t, &git_model.ProtectedBranch{RuleName: "master", RepoID: repo.ID}, 1)
|
|
})
|
|
}
|
|
|
|
func TestRepoFollowing(t *testing.T) {
|
|
setting.Federation.Enabled = true
|
|
defer tests.PrepareTestEnv(t)()
|
|
defer func() {
|
|
setting.Federation.Enabled = false
|
|
}()
|
|
|
|
federatedRoutes := http.NewServeMux()
|
|
federatedRoutes.HandleFunc("/.well-known/nodeinfo",
|
|
func(res http.ResponseWriter, req *http.Request) {
|
|
// curl -H "Accept: application/json" https://federated-repo.prod.meissa.de/.well-known/nodeinfo
|
|
responseBody := fmt.Sprintf(`{"links":[{"href":"http://%s/api/v1/nodeinfo","rel":"http://nodeinfo.diaspora.software/ns/schema/2.1"}]}`, req.Host)
|
|
t.Logf("response: %s", responseBody)
|
|
// TODO: as soon as content-type will become important: content-type: application/json;charset=utf-8
|
|
fmt.Fprint(res, responseBody)
|
|
})
|
|
federatedRoutes.HandleFunc("/api/v1/nodeinfo",
|
|
func(res http.ResponseWriter, req *http.Request) {
|
|
// curl -H "Accept: application/json" https://federated-repo.prod.meissa.de/api/v1/nodeinfo
|
|
responseBody := fmt.Sprintf(`{"version":"2.1","software":{"name":"forgejo","version":"1.20.0+dev-3183-g976d79044",` +
|
|
`"repository":"https://codeberg.org/forgejo/forgejo.git","homepage":"https://forgejo.org/"},` +
|
|
`"protocols":["activitypub"],"services":{"inbound":[],"outbound":["rss2.0"]},` +
|
|
`"openRegistrations":true,"usage":{"users":{"total":14,"activeHalfyear":2}},"metadata":{}}`)
|
|
fmt.Fprint(res, responseBody)
|
|
})
|
|
repo1InboxReceivedLike := false
|
|
federatedRoutes.HandleFunc("/api/v1/activitypub/repository-id/1/inbox/",
|
|
func(res http.ResponseWriter, req *http.Request) {
|
|
if req.Method != "POST" {
|
|
t.Errorf("Unhandled request: %q", req.URL.EscapedPath())
|
|
}
|
|
buf := new(strings.Builder)
|
|
_, err := io.Copy(buf, req.Body)
|
|
if err != nil {
|
|
t.Errorf("Error reading body: %q", err)
|
|
}
|
|
like := fm.ForgeLike{}
|
|
err = like.UnmarshalJSON([]byte(buf.String()))
|
|
if err != nil {
|
|
t.Errorf("Error unmarshalling ForgeLike: %q", err)
|
|
}
|
|
if isValid, err := validation.IsValid(like); !isValid {
|
|
t.Errorf("ForgeLike is not valid: %q", err)
|
|
}
|
|
|
|
activityType := like.Type
|
|
object := like.Object.GetLink().String()
|
|
isLikeType := activityType == "Like"
|
|
isCorrectObject := strings.HasSuffix(object, "/api/v1/activitypub/repository-id/1")
|
|
if !isLikeType || !isCorrectObject {
|
|
t.Errorf("Activity is not a like for this repo")
|
|
}
|
|
|
|
repo1InboxReceivedLike = true
|
|
})
|
|
federatedRoutes.HandleFunc("/",
|
|
func(res http.ResponseWriter, req *http.Request) {
|
|
t.Errorf("Unhandled request: %q", req.URL.EscapedPath())
|
|
})
|
|
federatedSrv := httptest.NewServer(federatedRoutes)
|
|
defer federatedSrv.Close()
|
|
|
|
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
|
|
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1, OwnerID: user.ID})
|
|
session := loginUser(t, user.Name)
|
|
|
|
t.Run("Add a following repo", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
link := fmt.Sprintf("/%s/settings", repo.FullName())
|
|
|
|
req := NewRequestWithValues(t, "POST", link, map[string]string{
|
|
"_csrf": GetCSRF(t, session, link),
|
|
"action": "federation",
|
|
"following_repos": fmt.Sprintf("%s/api/v1/activitypub/repository-id/1", federatedSrv.URL),
|
|
})
|
|
session.MakeRequest(t, req, http.StatusSeeOther)
|
|
|
|
// Verify it was added.
|
|
federationHost := unittest.AssertExistsAndLoadBean(t, &forgefed.FederationHost{HostFqdn: "127.0.0.1"})
|
|
unittest.AssertExistsAndLoadBean(t, &repo_model.FollowingRepo{
|
|
ExternalID: "1",
|
|
FederationHostID: federationHost.ID,
|
|
})
|
|
})
|
|
|
|
t.Run("Star a repo having a following repo", func(t *testing.T) {
|
|
defer tests.PrintCurrentTest(t)()
|
|
repoLink := fmt.Sprintf("/%s", repo.FullName())
|
|
link := fmt.Sprintf("%s/action/star", repoLink)
|
|
req := NewRequestWithValues(t, "POST", link, map[string]string{
|
|
"_csrf": GetCSRF(t, session, repoLink),
|
|
})
|
|
assert.False(t, repo1InboxReceivedLike)
|
|
session.MakeRequest(t, req, http.StatusOK)
|
|
assert.True(t, repo1InboxReceivedLike)
|
|
})
|
|
}
|