Commit Graph

2151 Commits (2785206535886e1b7a152b3161ac444da25287fa)

Author SHA1 Message Date
Dhruv Dhruv 2785206535 fix: [CDE-150]: In logstream, adding locking and panic recovery around a subscriber's publish method. Adding check in the stream's publish method to not publish if the sub is closed. Closing the err channel in the log stream API handler. (#2218)
* Formatting.
* fix: [CDE-150]: In logstream, adding locking and panic recovery around a subscriber's publish method. Adding check in the stream's publish method to not publish if the sub is closed. Closing the err channel in the log stream API handler.
2024-07-15 08:10:59 +00:00
Ansuman Satapathy 56df9da6b8 fix: [CDE-141]: gitspace start stop (#2216)
* fix: [CDE-141]: gitspace start stop
* fix: [CDE-141]: gitspace start stop
* fix: [CDE-141]: gitspace start stop
2024-07-15 06:36:46 +00:00
Deepesh Kumar 227cb55749 feat: [CDE-141]: handle failure to parse container logs (#2215)
* feat: [CDE-141]: fixed time format in event timeline
* feat: [CDE-141]: handle failure to parse container logs
* feat: [CDE-141]: handle failure to parse container logs
2024-07-13 13:07:10 +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
Deepesh Kumar 6f7d1079d9 feat: [CDE-107]: Gitspace in standalone gitness (#2207) 2024-07-13 02:18:25 +00:00
Ansuman Satapathy 31ae886d00 fix: [CDE-141]: corrected infraprovider auto-creation check (#2210)
* fix: [CDE-141]: corrected infraprovider auto-creation check
2024-07-12 16:56:53 +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
Ritik Kapoor 75f4e9e932 status check checkbox in rules to update with checkbox (#2205)
* status check checkbox in rules to update with checkbox
2024-07-11 20:12:54 +00:00
Calvin Lee feecde9faa fix: [code-2105]: fix available merge strats (#2206)
* fix: [code-2105]: fix available merge strats
2024-07-11 18:00:08 +00:00
Marko Gaćeša 4ac42fc6c9 Add additions and deletions to PRs (#2196) 2024-07-11 10:01:17 +00:00
Dhruv Dhruv 94b0f0178a feat: [CDE-136]: Removing password authentication for code-server and breaking setup in installation and run. (#2202)
* feat: [CDE-136]: Removing password authentication for code-server and breaking setup in installation and run.
2024-07-11 08:30:21 +00:00
Calvin Lee dd7ef06c24 fix: [code-2088]: fix pr title update (#2200)
* fix: [code-2088]: fix pr title update
2024-07-11 06:42:29 +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
Johannes Batzill 76682ad400 [FIX] update unresolved comment count when suggestions are applied (#2198) 2024-07-10 23:05:22 +00:00
Kapil Garg dd143cc37e add migration to add columns in infra_provisioned table (#2154)
* rename migration files
* change column type to TEXT
* change column type to TEXT
* update migration scripts
* add migration to add columns in infra_provisioned table
2024-07-10 13:35:50 +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
Calvin Lee 6864710e8e fix: [code-2088]: fix bugs on pr panel (#2190)
* fix: [code-2088]: fix bugs on pr panel
2024-07-10 07:38:21 +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 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
Karan Saraswat b10fa3ea76 fix for making imported ADO repos' visibility the same as it's project's visibility (#2179)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2073
* removed extra check for azure provider type for importing
* fix for making imported ADO repos' visibility the same as it's project's visibility
2024-07-08 18:39:48 +00:00
Johannes Batzill 28b55f0e53 Move Register/Login/Logout (#2172)
* move register/login/logout, git resources, and system check APIs outside of auth
2024-07-08 17:53:45 +00:00
Karan Saraswat c6f6d83e74 fix for making imported ADO repos' visibility the same as it's project's visibility (#2174)
* fix for making imported ADO repos' visibility the same as it's project's visibility
2024-07-08 17:39:50 +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
Deepesh Kumar 0fffff1416 feat: Fixed aligment issue in CDE (#2175)
* feat: Fixed aligment issue in CDE
2024-07-08 04:10:46 +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
Shashwat Sachan 30dfa92023 feat: [CDE-125]: Pass token to the browser call. (#2162)
* feat: [CDE-125]: Fix linting error
* feat: [CDE-125]: Open vscode in same window
* feat: [CDE-125]: Add routing in case of invalid token
* feat: [CDE-125]: Pass token to the browser call.
2024-07-06 00:05:01 +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
Calvin Lee 21fe66b47f fix: [code-2061]: add last used field (#2167)
* fix: [code-2061]: fix lint
* fix: [code-2061]: fix comment
* fix: [code-2061]: add last used field
2024-07-04 05:41:59 +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
Deepesh Kumar 37cce5c8a4 feat: create repo from gitspace (#2157) 2024-07-02 17:19:48 +00:00
Calvin Lee ceb86704be fix: [code-2061]: fix save btn (#2156) 2024-07-02 16:56:19 +00:00
Calvin Lee f836cbec89 fix: [code-2061]: fix text (#2151) 2024-07-02 08:06:32 +00:00
Calvin Lee 9dd98910a8 fix: [code-2061]: fix text (#2145) 2024-07-02 07:52:42 +00:00
Calvin Lee 063731a752 fix: [code-2061]: hide clone button (#2144) 2024-07-01 23:24:33 +00:00
Abhinav Singh b333f42142 feat: add users check (#2132) 2024-07-01 20:45:12 +00:00
Calvin Lee 6a6c62f9b3 feat: [code-2061]: add ssh support in gitness (#2140) 2024-07-01 19:09:53 +00:00
Ritik Kapoor baa31cce9e Refactor routes to fix 'search' folder navigation in standalone gitness (#2135) 2024-07-01 11:43:56 +00:00
Dhruv Dhruv 06a514976f feat: [CDE-115]: Adding infra provider factory (#2138) 2024-06-28 14:22:58 +00:00
Dhruv Dhruv f53480a8ad feat: [CDE-85]: Adding impl for docker provider (#2131) 2024-06-28 06:47:45 +00:00