Abhinav Singh
d0562a573c
feat: [CODE-2146]: add new router paradigm
...
* lint
* address comment
* fix
* ssh ctx
* add ctx for new places
* generate wiregen
* Merge remote-tracking branch 'harness0/main' into abhinav/new-router-paradigm
* Merge branch 'main' into abhinav/new-router-paradigm
* add new discussion changes
* address comment
* address comment
* address comment
* address comment
* address comment
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* feat: abstract routers logic
* style
* remove nil context
* add ctx to missing
* style
* remvoe ctx
* remvoe ctx
* feat: provider should have ctx
2024-07-23 21:39:39 +00:00
Ansuman Satapathy
0bbcc98b61
feat: [CDE-142]: extract gitspace find to its own svc ( #2251 )
...
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
* feat: [CDE-142]: extract gitspace find to its own svc
2024-07-19 11:43:43 +00:00
Ansuman Satapathy
767bb717d9
feat: [CDE-142]: provider interface pass pointers. ( #2232 )
...
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
2024-07-16 13:06:08 +00:00
Dhruv Dhruv
6e516183fd
feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning. ( #2231 )
...
* feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning.
2024-07-16 07:59:02 +00:00
Dhruv Dhruv
b9d3bb4d2b
feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner. ( #2201 )
...
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Addressing review comments.
* feat: [CDE-140]: Reverting changes done for docker config default values. Adding default value of GITNESS_GITSPACE_DEFAULT_BIND_MOUNT_SOURCE_BASE_PATH and GITNESS_DOCKER_HOST to Dockerfile. Adding new column in gitspace_events table for storing event timestamp in nanoseconds and corresponding migrations.
* Lingting.
* feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner.
2024-07-13 04:35:20 +00:00
Ansuman Satapathy
050415afdf
feat: [CDE-137]: add a service layer for infraproviders, autoadd infraprovider ( #2204 )
...
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add missing type.
* feat: [CDE-137]: add a service layer for infraproviders, autoadd infraprovider
2024-07-12 08:45:10 +00:00
Ansuman Satapathy
18226c8914
feat: [CDE-137]: check valid code repository for CDE use. ( #2197 )
...
* feat: [CDE-137]: check valid code repository for CDE use.
* feat: [CDE-137]: check valid code repository for CDE use.
* feat: [CDE-137]: check valid code repository for CDE use.
2024-07-11 05:47:29 +00:00
Dhruv Dhruv
e712903728
feat: [CDE-94]: Adding events for gitspace transitions. ( #2195 )
...
* feat: [CDE-94]: Fixing gitspace url.
* feat: [CDE-94]: Linting
* feat: [CDE-94]: Adding events for gitspace transitions.
2024-07-10 13:06:38 +00:00
Dhruv Dhruv
87157de7fa
feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow. ( #2192 )
...
* feat: [CDE-96]: Renaming reusable scanner as scanner doesn't support resetting the reader. Removing closec as return param in livelog.Tail method. CLosing the handler channel when the stream is closed, this ensures the consumer to know the channel is closed. Adding a check in the render.StreamSSE to close the stream when the events channel is closed and drained.
* feat: [CDE-127]: Changes to enable log stream API for gitspaces. Adding close channel to the logstream Tail method. Changes to use a default host and working dir from config for a running gitspace instance's URL. Change to append gitspaces to the bind mount of the gitspace container in the container orchestrator instead of in the config provider.
* Initial commit
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Adding flush stream logic to delete gitspace in orchestrator. Linting.
* feat: [CDE-127]: Addressing review comments.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow.
2024-07-10 10:25:41 +00:00
Ansuman Satapathy
6e525fca4a
feat: [CDE-127]: read multi-table and multi query data in a single SQL txn ( #2193 )
...
* feat: [CDE-127]: starting and stopping states.
* feat: [CDE-127]: read multi-table and multi query data in a single SQL txn
2024-07-10 07:10:54 +00:00
Dhruv Dhruv
d577102d5e
feat: [CDE-127]: Adding changes to include logging in container orchestration. ( #2178 )
...
* feat: [CDE-127]: Linting.
* Merge branch 'refs/heads/main' into CDE-127
# Conflicts:
# app/gitspace/orchestrator/container/embedded_docker.go
# cmd/gitness/wire.go
* feat: [CDE-127]: Addressing review comments.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Removing streams map from StatefulLogger. Flushing the stream every time the invoking function is closed.
* feat: [CDE-127]: Adding flush stream logic to delete gitspace in orchestrator. Linting.
* feat: [CDE-127]: Adding flush stream logic to delete gitspace in orchestrator. Linting.
* feat: [CDE-127]: Addressing review comments.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to make logutil.StatefulLogger a wrapper on livelog.LogStream and adding initialisation and flush functions.
* feat: [CDE-127]: Adding changes to include logging in container orchestration's stop flow.
* feat: [CDE-127]: Adding changes to include logging in container orchestration's start flow.
2024-07-09 21:13:47 +00:00
Ansuman Satapathy
bf0890bd07
feat: [CDE-127]: updated gitspace delete logic, fixed listing ( #2183 )
...
* fixed events list API query
* feat: [CDE-127]: fixed events list API
* fixed events list API query
* feat: [CDE-127]: updated gitspace delete logic, fixed listing
2024-07-09 14:03:54 +00:00
Ansuman Satapathy
f78439593c
gitspaces API Implementation ( #2136 )
...
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed linting issues.
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed types
* feat: [CDE-83]: fixed DB comments.
* feat: [CDE-83]: fixed DB comments.
* feat: [CDE-83]: Implemented the action API
* gitspaces API Implementation
2024-07-09 05:23:02 +00:00
Dhruv Dhruv
f3d3f7392a
feat: [CDE-93]: List API to fetch gitspace events. ( #2176 )
...
* feat: [CDE-93]: Adding openapi spec.
* feat: [CDE-93]: List API to fetch gitspace events.
2024-07-08 08:29:56 +00:00
Marko Gaćeša
5427130a42
pull request import ( #2121 )
...
* bypass lint
* bump golang version
* using types from migrator
* moving Importing to the RepositoryOutput
* minor changes; improved unit tests
* pr comments
* pr import
* pull request import
2024-07-06 00:46:36 +00:00
Ansuman Satapathy
728a419267
feat: [CDE-83]: Added scaffolding for APIs for gitspaces ( #2173 )
...
* feat: [CDE-83]: Added scaffolding for APIs
* feat: [CDE-83]: Added scaffolding for APIs
2024-07-05 13:03:10 +00:00
Abhinav Singh
b333f42142
feat: add users check ( #2132 )
2024-07-01 20:45:12 +00:00
Enver Biševac
2f8900e463
[code-1946] initial work on ssh server ( #2075 )
2024-06-03 12:47:31 +00:00
Marko Gaćeša
0d72a20450
ssh public keys: db and api ( #2058 )
2024-05-27 14:26:21 +00:00
Johannes Batzill
bc568edd85
fix cleanup for failed repo create, cleanup summary git api ( #2064 )
2024-05-24 00:38:29 +00:00
Atefeh Mohseni Ejiyeh
c365ef246a
Support Public Access ( #2021 )
2024-05-23 04:56:26 +00:00
Darko Draskovic
e31f33adde
Add comment mentions metadata and return id to principal info mapping in list activity response ( #2024 )
2024-05-10 23:22:59 +00:00
Enver Bisevac
d31dd11fcf
[code-1692] update repo settings audit log ( #1231 )
2024-04-19 09:43:51 +00:00
Enver Bisevac
2ce0f96b59
[code-1524] audit trail for import repositories ( #1209 )
2024-04-12 18:35:29 +00:00
Marko Gacesa
781b3547c0
refactor git hook calling and shared repo ( #1200 )
2024-04-12 09:48:35 +00:00
Enver Bisevac
227aac90b5
[code-1524] audit trails package ( #1176 )
2024-04-08 21:13:57 +00:00
Atefeh Mohseni-Ejiyeh
b64f4c41fa
Update default branch on empty repo for first commit ( #1122 )
2024-04-04 01:16:43 +00:00
Johannes Batzill
39a998eacd
Adding Repo Level Settings ( #1145 )
2024-03-28 03:36:15 +00:00
Johannes Batzill
e96ab4159b
Add alternate_object_dirs support to githook handlers ( #1141 )
2024-03-26 23:52:49 +00:00
Abhinav Singh
96f35b6e01
feat: add repochecks ( #1132 )
2024-03-26 22:22:30 +00:00
Enver Bisevac
cecfecdb06
[code-1016] Replace gitea
Usages (not wrapper) ( #1063 )
2024-03-26 20:31:30 +00:00
Darko Draskovic
8dc82433c5
Add generic pre/post receive extender ( #1138 )
2024-03-26 18:17:28 +00:00
Atefeh Mohseni-Ejiyeh
5d0d28e4a3
Support Space Soft Delete, Restore, and Purge ( #1076 )
2024-03-21 23:34:19 +00:00
Abhinav Singh
16ef31bcb6
feat: support diff repo id check in harness code ( #1123 )
2024-03-21 00:38:18 +00:00
Atefeh Mohseni-Ejiyeh
fc9e77c91c
Support soft delete, restore and purge repos plus a cleanup job for old deleted repos ( #1005 )
2024-02-14 01:39:39 +00:00
Johannes Batzill
c270b8f7b9
[CLI] move swagger+server under cli/operations ( #1011 )
2024-02-01 19:41:32 +00:00
Abhinav Singh
87cae05747
feat: different openapi for harness code ( #997 )
2024-01-30 21:51:44 +00:00
Johannes Batzill
adf2046a94
[MISC] Move UID
to Identifier
to match Harness Standards ( #992 )
2024-01-29 23:29:53 +00:00
Atefeh Mohseni-Ejiyeh
29f781201f
support update default branch ( #973 )
2024-01-20 07:10:16 +00:00
Vistaar Juneja
76e3c06b6b
Templates support for v1 pipelines ( #955 )
2024-01-12 11:02:31 +00:00
Vistaar Juneja
a27a1e4abb
add support for starlark/jsonnet for drone v1 ( #940 )
2024-01-05 14:10:22 +00:00
Darko Draskovic
dd49c18b2e
Add a repo size limiter method to Unlimited limiter ( #943 )
2024-01-03 14:13:51 +00:00
Darko Draskovic
c58e82672b
Add func to git service to count repo objects and read repo size ( #886 )
2023-12-29 12:33:53 +00:00
Darko Draskovic
1a8e99f0b6
Add noop repo resource limiter to controller ( #926 )
2023-12-22 17:31:15 +00:00
Johannes Batzill
1d8d50a188
[Githook] Introduce InMemory Githook ( #916 )
2023-12-19 15:50:15 +00:00
Abhinav Singh
05af8b777b
feat: refactor status check to create abstraction ( #902 )
2023-12-15 07:13:13 +00:00
Atefeh Mohseni-Ejiyeh
3dbaef0eb8
separate job package config from gitness types ( #897 )
2023-12-13 06:15:09 +00:00
Marko Gacesa
a7f11126fa
remove gogit ( #887 )
2023-12-11 10:15:15 +00:00
Johannes Batzill
ff9843db26
[MISC] Fix Missuage of processGiteaErrorf
( #891 )
2023-12-08 23:55:04 +00:00
Johannes Batzill
b8942a4e41
[GIT] Enable Trace Logging ( #888 )
2023-12-08 22:50:16 +00:00
Atefeh Mohseni-Ejiyeh
5aec7bf37f
move job package to the top level ( #883 )
2023-12-08 17:06:44 +00:00
Marko Gacesa
1899e70e56
detect force push ( #856 )
2023-12-07 10:25:08 +00:00
Marko Gacesa
90d8ac7193
remove gogit from last commit cache ( #877 )
2023-12-07 10:24:58 +00:00
Akhilesh Pandey
02aac02993
feat: process notification and send emails ( #803 )
2023-12-06 22:07:29 +00:00
Marko Gacesa
25d282073d
return user info for rule bypass users ( #867 )
2023-12-05 19:04:04 +00:00
Abhinav Singh
04566e1cf9
feat: support codewoners usrgrp ( #826 )
2023-11-30 04:02:28 +00:00
Shubham Agrawal
1a2a456550
Add interfaces for keyword search ( #816 )
2023-11-29 18:02:46 +00:00
Akhilesh Pandey
4fc38bca65
feat: Update token source impersonation and add expiration check ( #815 )
2023-11-27 14:41:39 +00:00
Enver Bisevac
67f560874d
[maint] gitrpc package removed ( #726 )
2023-11-15 10:15:32 +00:00
Akhilesh Pandey
66ff29d36e
feat: introduce new event for repo deletion and refactor existing pullreqevents to repoevents ( #736 )
2023-11-13 18:37:53 +00:00
Vistaar Juneja
d219d79395
add build link to envs while running pipelines ( #773 )
2023-11-13 12:01:33 +00:00
Marko Gacesa
b6ee8b6ba9
fix sse space events API blocking app shutdown ( #774 )
2023-11-08 07:24:14 +00:00
Abhinav Singh
adbe2f6f97
feat: [CODE-967]: codeowners service e2e ( #695 )
2023-10-26 16:50:59 +00:00
Johannes Batzill
0961ee0906
[MISC] Separate Git Smart HTTP Protocol Into Handler
and Controller
( #717 )
2023-10-25 17:23:19 +00:00
Marko Gacesa
7ab52c1764
add protection to prevent direct push ( #712 )
2023-10-24 14:22:06 +00:00
Abhinav Singh
3b2ed1de50
feat: [CODE-580]: code comment webhook ( #706 )
2023-10-23 23:59:45 +00:00
Johannes Batzill
1ea0025f99
[MISC] Fix Linting/Formatting/Generated Files ( #697 )
2023-10-19 00:36:07 +00:00
Abhinav Singh
1a07ee90d2
fix: [CODE-965]: codeowners file parse ( #684 )
2023-10-18 06:38:50 +00:00
Marko Gacesa
419fe92dde
add branch protection: DB and API layer ( #671 )
2023-10-16 11:33:00 +00:00
Akhilesh Pandey
23b9117302
feat: Image Upload (Backend) ( #651 )
2023-10-11 17:54:03 +00:00
Johannes Batzill
d83552f288
[MISC] Cleanup stale Webhook-Executions
& Session Tokens
( #640 )
2023-10-03 17:54:18 +00:00
Johannes Batzill
cb518d5197
[MISC] Redirect Clone URL to Repo Page ( #641 )
2023-10-03 15:51:18 +00:00
Marko Gaćeša
933d2d9703
remove sqlx.DB from controllers and services
2023-09-28 14:07:25 +02:00
Johannes Batzill
5b33258589
[MISC] Abstract URL Provider ( #617 )
2023-09-27 02:42:33 +00:00
Johannes Batzill
a8cb5dc8d2
remove internal package and move to app - might be refactored more in the coming weeks
2023-09-26 11:25:15 -07:00
Johannes Batzill
dc351cdcef
[LINT] Fix All Linting Errors ( #609 )
2023-09-26 00:56:53 +00:00
Johannes Batzill
1246bd78ab
[MISC] improve url generation to reduce configuration overhead ( #606 )
2023-09-25 17:58:20 +00:00
Johannes Batzill
6c42b77500
[SSE] Add full stack SSE support for PRs ( #591 )
2023-09-21 02:55:41 +00:00
Enver Bisevac
138f47dd92
Merge branch 'eb/cookiename-configurable' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #573 )
2023-09-20 15:00:18 +00:00
Enver Bisevac
36f83c8652
cookie name configurable
2023-09-20 16:54:47 +02:00
Vistaar Juneja
0305eb8431
write to checks store in case of cancellation ( #572 )
2023-09-20 14:00:11 +00:00
Vistaar Juneja
40af7bfa33
add plugins support for v1 YAML ( #552 )
2023-09-19 21:05:50 +00:00
Marko Gaćeša
a0d63707df
introduce git object cache for gogit
2023-09-19 16:36:57 +02:00
Johannes Batzill
ebe2800101
[Webhooks] Add Encryption support ( #520 )
2023-09-18 16:00:22 +00:00
Johannes Batzill
27de7971b9
[File Viewed] Adding Full Stack Support for File Viewed
Feature ( #516 )
2023-09-18 15:59:40 +00:00
Johannes Batzill
0a9dde7459
[Refactor] Move from paths
to space_paths
Table ( #500 )
2023-09-15 15:19:53 +00:00
Abhinav Singh
4ff032c968
feat: [CODE-852]: code export e2e ( #483 )
2023-09-15 08:08:13 +00:00
Marko Gaćeša
b78c04e054
import pipelines
2023-09-14 17:22:26 +02:00
Enver Bisevac
53d277b108
metrics collector added
2023-09-14 13:25:44 +02:00
Johannes Batzill
8cd3e5d015
[Standalone] Add temporary JWT for pipeline executions ( #480 )
2023-09-14 08:54:03 +00:00
Abhinav Singh
32014f0776
feat: [CODE-853]: harness code client
2023-09-13 15:33:36 -07:00
Vistaar Juneja
625d8af797
add cancellation support for CI builds ( #456 )
2023-09-13 15:22:26 +00:00
Vistaar Juneja
3bc56a1814
add support for checks summary in CI ( #436 )
2023-09-13 09:55:25 +00:00
Johannes Batzill
db4379e5b9
[SSE] Add repository_import_completed
event ( #445 )
2023-09-13 02:45:03 +00:00
Johannes Batzill
ef4855e901
[Server Sent Events] Improve both Frontend and Backend ( #441 )
2023-09-12 23:45:54 +00:00
Johannes Batzill
50b66d9342
[PR] Recheck Unchecked
PR Merge Status ( #434 )
2023-09-12 16:26:18 +00:00
Marko Gaćeša
68792a9581
require scm auth for import API; import repo job encrypt
2023-09-12 15:01:01 +02:00
Vistaar Juneja
c7ef132cbc
add support for triggered builds ( #428 )
2023-09-12 09:08:38 +00:00
Marko Gaćeša
cde80d53a8
add space import
2023-09-09 12:55:49 +02:00
Johannes Batzill
0d086a1a4d
[Events] This PR introduces the Trigger Service for Event Consumption + Some Minor improvements ( #419 )
2023-09-08 23:52:19 +00:00