Commit Graph

400 Commits (fix-admin-user-readme)

Author SHA1 Message Date
Darko Draskovic bb77a835cf Add pullreq label activities (#2296)
* Add colors to label activity info
* Refactor FindValueByLabelID query
* Simplify more label activity assign logic
* Simplify label activity assign logic
* Add pullreq label activities
2024-08-01 19:20:54 +00:00
Darko Draskovic f392fb1015 Add restricted by query label count when using query and sanitize empty label (value) text (#2335)
* Add restricted by query label count when using query and sanitize empty label (value) text
2024-08-01 15:38:21 +00:00
Dhruv Dhruv 9d5071b45c feat: [CDE-203]: Making infra processing async. (#2325)
* Cleaning the flow around gitspace instance update.
* Renaming params and param schema types.
* Correcting comments.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
2024-08-01 10:01:31 +00:00
Shashwat Sachan 1e6330a589 feat: [CDE-195]: gitness use repo ref (#2336)
* feat: [CDE-195]: gitness use repo ref
* feat: [CDE-195]: UI changes for type and ref.
* feat: [CDE-195]: gitness use repo ref
2024-07-31 14:30:09 +00:00
Ansuman Satapathy f7928f1f77 feat: [CDE-195]: autoset git user config for internal repos (#2304)
* feat: [CDE-195]: autoset git user config for internal repos
2024-07-29 06:52:07 +00:00
Ansuman Satapathy b6034a25aa feat: [CDE-195]: read devcontainer.json directly for gitness (#2294)
* feat: [CDE-195]: Run VS Code Web as non-root user.
* feat: [CDE-195]: read devcontainer.json directly for gitness
2024-07-26 12:44:36 +00:00
Dhruv Dhruv 9232029c74 WIP (#2284)
* feat: [CDE-194]: Reverting docker port range changes.
* feat: [CDE-194]: Removing extra types.
* feat: [CDE-194]: Restructuring code around port publishing and forwarding.
* WIP
* WIP
* WIP
* WIP
2024-07-26 06:26:22 +00:00
Darko Draskovic 81fcd524c8 Add label feature (#2073)
* Address PR comments
* Add list label from ancestor scopes query param
* Add label feature
2024-07-25 14:57:56 +00:00
Marko Gaćeša 7b17cc7831 add pr-updated webhook (#2247)
* add pr-updated webhook
2024-07-25 09:56:41 +00:00
Marko Gaćeša d687080cf4 pr reviewer removal (#2269)
* add reviewer principal ID to activity payload
* pr reviewer removal
2024-07-25 09:55:41 +00:00
Dhruv Dhruv 1af6be80e9 feat: [CDE-174]: Adding logic to restart gitspaces. (#2239)
* feat: [CDE-174]: Linting
* feat: [CDE-174]: Updating the entrypoint to trap SIGTERM.
* feat: [CDE-174]: Adding logic to restart gitspaces.
2024-07-17 09:28:29 +00:00
Dhruv Dhruv 411eda9819 Changing order of execution for postCreateCommand and using repo name as working dir (#2236)
* Changing order of execution for postCreateCommand and using repo name as working dir
2024-07-16 14:23:22 +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
Deepesh Kumar 0a5ed06f02 feat: [CDE-129]: added flag gitspace_enabled (#2214)
* feat: [CDE-129]: fixed lint
* feat: [CDE-129]: fixed lint
* feat: [CDE-129]: updated flag gitspace_enabled
* feat: [CDE-129]: updated webpack
* feat: [CDE-129]: updated webpack
* feat: [CDE-129]: added flag gitspace_enabled
2024-07-13 04:28:07 +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
Marko Gaćeša 4ac42fc6c9 Add additions and deletions to PRs (#2196) 2024-07-11 10:01:17 +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
Ansuman Satapathy 61f1bc55fe feat: [CDE-137]: made gitspace actions async and refactored orchestrator to handle errors correctly (#2194)
* feat: [CDE-137]: made gitspace actions async and refactored orchestrator to handle errors correctly
2024-07-10 10:44:36 +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
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 34df7cf137 feat: [CDE-94]: Adding orchestration to start, stop and delete Gitspaces. (#2159)
* Addressing review comments.
* feat: [CDE-94]: Rebasing PR. Adding StartResponse to store container orchestration start response. Refactoring provisioner to clean the method params.
* feat: [CDE-94]: Using ports returned by the container orchestrator
* feat: [CDE-94]: Adding orchestrtion to start, stop and delete Gitspaces.
2024-07-08 20:10:44 +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
Ritik Kapoor 87e418bb86 update: [code-2017] swagger (#2110)
* update: [code-2017] id and display_name to identifier
* fix: [code-2017] comment update
* fix: [code-2017] replace identifier with id in pipelines
* fix: [code-2017] prettier
* update: [code-2017] swagger
2024-07-05 16:39:26 +00:00
Dhruv Dhruv d46516baa7 feat: [CDE-115]: Adding implementation for infra_provisioner
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Rebasing
* feat: [CDE-115]: Adding default value for docker host
* feat: [CDE-115]: Rebasing
* Rebasing
* Rebasing
* Rebasing
2024-07-05 15:07:07 +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
Dhruv Dhruv 3ccd39df01 feat: [CDE-126]: Addressing review comments. (#2171)
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
* feat: [CDE-126]: Addressing review comments.
2024-07-05 11:20:09 +00:00
Dhruv Dhruv 3acded8ed8 feat: [CDE-92]: Container orchestrator and IDE service
* feat: [CDE-92]: Removing Client method from infraprovider interface and using DockerClientFactory to generate docker clients. Using go templates to substitute values in gitspace scripts. Setting a default base path for gitspaces if not provided.
* Rebasing
* feat: [CDE-92]: Addressing review comments.
* Rebasing
* Rebasing
* feat: [CDE-92]: Addressing review comments
* Rebasing
* feat: [CDE-92]: Using port from config for code-server installation
* feat: [CDE-92]: Initial commit
* Rebasing
2024-07-05 05:28:31 +00:00
Ansuman Satapathy 4833ed67a5 feat: [CDE-83]: Added base types for gitspaces (#2170)
* feat: [CDE-83]: Added base types for gitspaces
2024-07-04 09:25:45 +00:00
Dhruv Dhruv 21897dc090 feat: [CDE-116]: Adding SCM pkg responsible for fetching devcontainer config from public code repos (#2141) 2024-07-02 18:40:36 +00:00
Dhruv Dhruv f53480a8ad feat: [CDE-85]: Adding impl for docker provider (#2131) 2024-06-28 06:47:45 +00:00
Darko Draskovic fe7b1941ef Add omitempty to stats and run get change info for changes and types in parallel (#2105) 2024-06-14 15:41:53 +00:00
Johannes Batzill 2970d52cb3 Hide ssh url field if empty (#2103) 2024-06-12 23:31:59 +00:00
Enver Biševac 19600c3a17 [maint] remove unused keygenpath (#2093) 2024-06-12 17:49:09 +00:00
Johannes Batzill 90680e24f7 [SSH] Minor Server Changes (#2088) 2024-06-10 20:09:35 +00:00
Johannes Batzill d35db42583 Update CODEOWNERS to match github (#2069) 2024-06-06 16:58:01 +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
Darko Draskovic adf041d747 Add repo summary endpoint (#2037) 2024-05-23 18:45:28 +00:00
Atefeh Mohseni Ejiyeh c365ef246a Support Public Access (#2021) 2024-05-23 04:56:26 +00:00
Shubham Agrawal a0ac3e86c5 fix: [CODE-1924]: Add support for keyword search recursively in space paths (#2048) 2024-05-21 05:58:50 +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
Johannes Batzill f6614fe151 Minor Fixes (#2028) 2024-05-09 00:01:52 +00:00
Johannes Batzill 9e7f80ebe0 Code Suggestions - Backend Support (#2006) 2024-04-26 16:54:50 +00:00
Johannes Batzill 86537b2c39 Fix merge related issues (#2012) 2024-04-25 22:00:53 +00:00
Johannes Batzill a690fa4ebc small fixes (#1232) 2024-04-19 01:36:03 +00:00
Darko Draskovic 9699ec503d Add closed timestamp to pull req (#1222) 2024-04-17 20:24:04 +00:00
Enver Bisevac 84cc846445 exclude version from audit log (#1192) 2024-04-09 20:30:04 +00:00
Abhinav Singh aff7391e08 feat: add multi user created by filter (#1190) 2024-04-09 09:30:26 +00:00
Enver Bisevac 227aac90b5 [code-1524] audit trails package (#1176) 2024-04-08 21:13:57 +00:00
Atefeh Mohseni-Ejiyeh aa330928dd Restore the space to its exact state at the time of deletion (#1180) 2024-04-08 18:19:07 +00:00
Abhinav Singh f20189812b feat: list pr time filter (#1188) 2024-04-05 23:17:33 +00:00
Johannes Batzill c5383940bd Integrate approvals.RequireLatestcommit to merge dryrun (#1183) 2024-04-04 22:39:23 +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
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
Darko Draskovic 564a0fef61 Add support for listing commit related per file stats (#1116) 2024-03-20 18:31:48 +00:00
Johannes Batzill a79a5ca489 [AUTHZ] Fix scope of permission checks for checks without resource (#1119) 2024-03-15 16:10:30 +00:00
Johannes Batzill dc7b3bc79a [Rules] Expose extra `Branch.PullReq` fields on merge DryRyn as required by UI (#1117) 2024-03-13 23:37:10 +00:00
Darko Draskovic d0a087aa90 Remove omitempty from CommitDiffStats (#1112) 2024-03-08 13:02:52 +00:00
Shubham Agrawal 7ee761c632 Add non-regex search capability in keyword search (#1059) 2024-03-01 07:55:47 +00:00
Darko Draskovic 8150be7a3b Add commit diff stat to list commits (#1062) 2024-02-23 11:27:06 +00:00
Marko Gacesa f8f1453de1 add new API: list status checks for a pullreq (#1042) 2024-02-22 10:39:25 +00:00
Atefeh Mohseni-Ejiyeh 24fbf49168 repo soft delete improvements (#1045) 2024-02-22 05:25:29 +00:00
Darko Draskovic c949308596 List all Repos at Account level or Space Level recursively (#999) 2024-02-21 16:59:44 +00:00
Johannes Batzill dd11c0eff5 Fix `Rebase` implementation (#1049) 2024-02-20 17:45:09 +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
Darko Draskovic d96afd89bd Add additions and deletions stats to commit file response (#1015) 2024-02-07 16:07:53 +00:00
Johannes Batzill adf2046a94 [MISC] Move `UID` to `Identifier` to match Harness Standards (#992) 2024-01-29 23:29:53 +00:00
Abhinav Singh 837ba6f29d feat: add start and end time to check (#958) 2024-01-18 00:17:45 +00:00
Vistaar Juneja 5869c132e6 add support for container networks for pipelines (#962) 2024-01-15 15:02:04 +00:00
Vistaar Juneja 76e3c06b6b Templates support for v1 pipelines (#955) 2024-01-12 11:02:31 +00:00
Shubham Agrawal 18c81b04b4 Fix repo sizing job cron (#948) 2024-01-08 09:19:30 +00:00
Atefeh Mohseni-Ejiyeh 4c90cec3e5 remove default Admin account /environment variables (#938) 2024-01-03 18:31:47 +00:00
Johannes Batzill 53555544a2 [Webhook] Add UID field (#936) 2023-12-29 16:39:45 +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
Abhinav Singh 8a47c11be5 feat: add pr merge webhook and trigger (#928) 2023-12-20 09:40:16 +00:00
Johannes Batzill 1d8d50a188 [Githook] Introduce InMemory Githook (#916) 2023-12-19 15:50:15 +00:00
Johannes Batzill 100bed580d [GIT] migrate git.enum (#889) 2023-12-08 23:07:59 +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
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
Shubham Agrawal d5176982f5 Add branch field in search result for each file (#854) 2023-12-01 08:23:23 +00:00
Johannes Batzill 99c27f8fac [Pullreq] Send SSE on Merge DryRun (#850) 2023-12-01 00:54:39 +00:00
Marko Gacesa 03b33aca77 store PR commit count in the DB (#842) 2023-11-30 15:01:18 +00:00
Abhinav Singh 04566e1cf9 feat: support codewoners usrgrp (#826) 2023-11-30 04:02:28 +00:00
Johannes Batzill 5cdbde8100 [GA] Add feature flag for enable/disable public resource creation (#845) 2023-11-30 02:20:34 +00:00
Shubham Agrawal acc7083c59 Use space path + repo path for repo IDs to search (#843) 2023-11-29 18:31:03 +00:00
Abhinav Singh 5dc8c93233 feat: protect internal webhook from mutation and listing (#830) 2023-11-29 18:25:52 +00:00
Shubham Agrawal 1a2a456550 Add interfaces for keyword search (#816) 2023-11-29 18:02:46 +00:00
Johannes Batzill 07a088bb8c [Config] Ensure time related config elements are of type `time.Duration` (#813) 2023-11-18 00:50:49 +00:00
Akhilesh Pandey 00a69152d7 feat: add impersonation support to gcs client (#810) 2023-11-17 21:15:05 +00:00
Marko Gacesa f3bfdeaf8e add dry_run_rules option to the commit API (#808) 2023-11-17 12:07:20 +00:00
Marko Gacesa 2c618b33b3 add bypassable to rule violation (#802) 2023-11-15 14:37:52 +00:00