mirror of
1
Fork 0
Commit Graph

4421 Commits

Author SHA1 Message Date
bom 87bfa79f71 Configure client against DOS 2024-02-10 15:18:25 +01:00
Michael Jerger 8116214727 introduce nodeinfo 2024-02-10 15:17:07 +01:00
Michael Jerger 587bd07372 mv more fkt to http-client 2024-02-10 15:17:06 +01:00
Michael Jerger 3c2493902d adjust to ugly linting 2024-02-10 15:17:05 +01:00
erik 1e40b814a1 Linting 2024-02-10 15:17:03 +01:00
Michael Jerger a64ce2feb1 removed resolved todos 2024-02-10 15:17:02 +01:00
erik 2e031a9763 WIP Generic IsValid for *Id structs 2024-02-10 15:17:01 +01:00
Michael Jerger 6e4467d49d experiment on generalization 2024-02-10 15:16:59 +01:00
erik 48cfb521d1 Add suffix checking helper 2024-02-10 15:16:58 +01:00
Michael Jerger 44e10ed65a get wo body 2024-02-10 15:14:24 +01:00
Michael Jerger abdf56dde1 move forgefed to models 2024-02-10 15:14:06 +01:00
Michael Jerger 0b2cf2a55b remov unused experiments 2024-02-10 15:10:40 +01:00
Michael Jerger 184388015d added more tests 2024-02-10 15:10:39 +01:00
Michael Jerger 3151c8fe81 make validate more compact 2024-02-10 15:10:37 +01:00
Michael Jerger 6fef54ed1c there is a validation module 2024-02-10 15:10:34 +01:00
erik 3c515c2614 Add review todos 2024-02-10 15:10:33 +01:00
erik c61be31c72 Remove redundant person implementation 2024-02-10 15:09:53 +01:00
erik 7071117864 Implement Person creation 2024-02-10 15:09:36 +01:00
erik 7529b9da91 Note ToDos for setting up useful tests 2024-02-10 15:09:33 +01:00
erik 4b490802d7 Test creation of client only 2024-02-10 15:09:32 +01:00
erik 61afc65377 Implement Get method on Client struct 2024-02-10 15:09:31 +01:00
erik 56d11bbff4 Don't hardcode method in NewRequest function 2024-02-10 15:09:31 +01:00
erik 93d79646de Fix api url 2024-02-10 15:09:30 +01:00
erik 43ac3ddca9 Remove star validation as it happens in actor validation now 2024-02-10 15:09:29 +01:00
Michael Jerger 109dbd7d75 swager generated api 2024-02-10 15:09:16 +01:00
Michael Jerger 07bd30cf20 exosy has moved this package to service 2024-02-10 15:09:16 +01:00
erik b1f3706575 Introduce validation against source 2024-02-10 15:09:05 +01:00
erik b085ce37a6 Review 2024-02-10 15:08:40 +01:00
erik d2b464582f Add ToDo 2024-02-10 15:08:34 +01:00
erik e18e90f8df Add fieldname and type 2024-02-10 15:08:31 +01:00
erik e8013250b8 Add question 2024-02-10 15:08:23 +01:00
erik 7790e98f47 Remove unused funcs and structs 2024-02-10 15:08:22 +01:00
Michael Jerger 14c74f27cb tests are now working 2024-02-10 15:08:18 +01:00
bom d28ea1a30b Start implementing UnmarshalJSON for Star 2024-02-10 15:08:15 +01:00
bom 43014ca473 Implement MarshallJSON for Star activity 2024-02-10 15:08:15 +01:00
Michael Jerger a1885a5767 star: test first 2024-02-10 15:08:13 +01:00
Michael Jerger a1e9783cec expose star activity to swagger 2024-02-10 15:07:55 +01:00
erik d7dfdca8b9 WIP Add star to swagger 2024-02-10 15:07:53 +01:00
erik 17dfc7bdc1 Clearer wording, fix typos 2024-02-10 15:07:52 +01:00
Michael Jerger 07cf963af3 expose star activity to swagger 2024-02-10 15:07:50 +01:00
Michael Jerger dc1a82bf4c use star as swagger model 2024-02-10 15:07:48 +01:00
Michael Jerger 46fb4fec8f add star activity & bind to swagger 2024-02-10 15:07:40 +01:00
Michael Jerger ff5a4405fd introduce repo from exosy 2024-02-10 15:07:39 +01:00
Earl Warren 094c84ed6d
Merge branch 'rebase-forgejo-dependency' into wip-forgejo 2024-02-05 18:58:23 +01:00
Earl Warren d7e1854884
Merge branch 'rebase-forgejo-branding' into wip-forgejo 2024-02-05 18:58:18 +01:00
Earl Warren c6fe41239a
Merge branch 'rebase-forgejo-moderation' into wip-forgejo 2024-02-05 18:58:11 +01:00
Gusted 2ed825c5be
[GITEA] Fix orgmode link resolver for text descriptions
- It's possible that the description of an `Regularlink` is `Text` and not
another `Regularlink`. Therefor if it's `Text`, convert it to an
`Regularlink` trough the 'old' behavior (pass it trough `org.String` and
trim `file:` prefix).
- Adds unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1430

(cherry picked from commit 385fc6ee6b)
2024-02-05 16:57:56 +01:00
Gergely Nagy 2ca4862f8b
[GITEA] Allow changing the repo Wiki branch to main
Previously, the repo wiki was hardcoded to use `master` as its branch,
this change makes it possible to use `main` (or something else, governed
by `[repository].DEFAULT_BRANCH`, a setting that already exists and
defaults to `main`).

The way it is done is that a new column is added to the `repository`
table: `wiki_branch`. The migration will make existing repositories
default to `master`, for compatibility's sake, even if they don't have a
Wiki (because it's easier to do that). Newly created repositories will
default to `[repository].DEFAULT_BRANCH` instead.

The Wiki service was updated to use the branch name stored in the
database, and fall back to the default if it is empty.

Old repositories with Wikis using the older `master` branch will have
the option to do a one-time transition to `main`, available via the
repository settings in the "Danger Zone". This option will only be
available for repositories that have the internal wiki enabled, it is
not empty, and the wiki branch is not `[repository].DEFAULT_BRANCH`.

When migrating a repository with a Wiki, Forgejo will use the same
branch name for the wiki as the source repository did. If that's not the
same as the default, the option to normalize it will be available after
the migration's done.

Additionally, the `/api/v1/{owner}/{repo}` endpoint was updated: it will
now include the wiki branch name in `GET` requests, and allow changing
the wiki branch via `PATCH`.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit d87c526d2a)
2024-02-05 16:57:47 +01:00
Earl Warren 209610075a
[TESTS] add log.Level to test.NewLogChecker
So the caller can check log events at the desired level instead of
being limited to the default level log.INFO

(cherry picked from commit 2fbf5f9555)
(cherry picked from commit e2137a3147)
2024-02-05 16:54:44 +01:00
Gusted 6fb55e9c08
[GITEA] Add slow SQL query warning (squash) Fix setting typo
- Fix typo in the slow query threshold setting, add a deprecation warning.
- Resolves #2203

(cherry picked from commit 02f6608e5f)
(cherry picked from commit 4e8f6b2ffd)
2024-02-05 16:54:44 +01:00