Marko Gaćeša
934b3e8e5a
fix method in openapi for rebase api ( #2689 )
...
* fix method in openapi for rebase api
2024-09-16 11:20:59 +00:00
Darko Draskovic
060d977433
Add two new settings to branch rules: block merge and force push to branch ( #2656 )
...
* Fix rule naming, warn log and use switch case for ref update
* Fix tests
* Refactor isForcePush to remove post-receive only related msg
* Add two new settings to branch rules: block merge and force push to branch
2024-09-12 14:17:13 +00:00
Karan Saraswat
80105035f4
feat: [CODE-2338]: Add dry run rules param to create branch API ( #2679 )
...
* return struct instead of pointer in deleteBranch and createBranch methods
* feat: [CODE-2338]: Add dry run rules param to create branch API
2024-09-11 09:51:44 +00:00
Akhilesh Pandey
a2cea52155
feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List ( #2640 )
...
* feat: [CODE-2327]: add usergroup change to rebase api
* Merge branch 'main' into akp/CODE-2327
* feat: [CODE-2327]: wrap error
* feat: [CODE-2327]: move resolver inside bypass.go and update tests
* feat: [CODE-2327]: newline
* feat: [CODE-2327]: update wire
* Merge remote-tracking branch 'origin' into akp/CODE-2327
* feat: [CODE-2327]: update tests
* feat: [CODE-2327]: fix build
* feat: [CODE-2327]: merge main
* feat: [CODE-2327]: add and update unit tests
* feat: [CODE-2327]: fix
* feat: [CODE-2312]: introduce parser and enclosing method
* Apply suggestion from code review
* feat: [CODE-2327]: annotate error
* Merge branch 'main' into akp/CODE-2327
* feat: [CODE-2327]: usergroup resolver via controller
* feat: [CODE-2312]: update interface in protection
* feat: [CODE-2312]: export and update deduplication use
* feat: [CODE-2327]: Branch Rules: Allow Group bypass.go
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-09-11 08:04:31 +00:00
Marko Gaćeša
16cb3d5bc1
add rebase api ( #2675 )
...
* add rebase api
2024-09-10 16:58:44 +00:00
Abhinav Singh
50dc7f1d2c
fix: [CODE-2352]: fix repo listing open api ( #2676 )
...
* fix: [CODE-2352]: fix repo listing open api
2024-09-10 16:42:03 +00:00
Yogesh Chauhan
0af264d09f
feat: [ML-338]: APIs for Harness Intelligence ( #2667 )
...
* Return empty summary/branch for now
* Fix Lint Issues
* feat: [ML-288]: API skeletons for Harness Intelligence
* fix ai pipelines (#2659 )
* fix ai pipelines
* Update pipeline name (#2658 )
* Update pipeline name
* fix: [ML-288]: update remediation prompt and suggestions (#2652 )
* fix: [ML-288]: update remediation prompt and suggestions
* fix: [ML-288]: update url for artifact registry (#2651 )
* fix: [ML-288]: update url for artifact registry
* Add snippet to mark code as written by Harness Intelligence (#2628 )
* Add snippet to mark code as written by Harness Intelligence
* Add snippet to mark code as written by Harness Intelligence (#2626 )
* Add snippet to mark code as written by Harness Intelligence
* feat: [ML-288]: link to harness artifact registry (#2619 )
* some linting fixes
* feat: [ML-288]: link to harness artifact registry
* feat: [ML-286]: updating pipeline suggestions (#2620 )
* updating suggestions
* feat: [ML-286]: updating pipeline suggestions
* feat: [ML-288]: adding slackbot (#2603 )
* updating slack responses
* prevent responding to any bot messages
* feat: [ML-288]: adding slackbot
* throw error for commit
* commit stubbed
* feat: [ML-286]: moving stubbed response earlier in execution (#2602 )
* feat: [ML-286]: moving stubbed response earlier in execution
* feat: [ML-286]: adding stubbed response for analyze execution (#2600 )
* updating branch name
* adding updated-main for analyse-execution endpoint
* feat: [ML-286]: adding stubbed response for analyze execution
* Update AnalyseExecutionOutput to contain multi file diff (#2592 )
* Create branch and commit changes on analyse
* Simplify AnalyseExecutionOutput to contain only high level summary and branch
* Update AnalyseExecutionOutput to contain multi file diff
* updating endpoints for unscripted demo (#2594 )
* cleaning up code, adding suggested pipeline response
* updating suggestions api
* updating endpoints for unscripted demo
* Stub out generate pipeline yaml
2024-09-09 17:49:44 +00:00
Akhilesh Pandey
905d027cc3
feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List ( #2636 )
...
* feat: [CODE-2312]: annotate error
* feat: [CODE-2312]: name change and todo removal
* feat: [CODE-2312]: Annotate errors
* feat: [CODE-2232]: Branch Rules: UserGroup support: Create and List
2024-09-09 14:41:03 +00:00
Karan Saraswat
644678f50c
feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour ( #2672 )
...
* go lint issues and added return in the Deletebranch method
* removed the comment
* fixed go lint issues
* fixed query param in swagger
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2339
* feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour
2024-09-09 11:45:18 +00:00
Kapil Garg
029a033be7
add migration to drop deprecated gateway columns ( #2670 )
...
* update cde gateway full sync query
* add migration to drop deprecated gateway columns
2024-09-09 08:30:49 +00:00
Johannes Batzill
77b01718bd
feat: [CODE-2179]: Add error message to protection rule violation error responses ( #2665 )
2024-09-06 18:54:15 +00:00
Enver Biševac
61c794da0b
feat: unrealted histories error handling ( #2642 )
...
* comments added
* return proper status and message for unrelated history
* code cleanup
* requested changes
* feat: unrealted histories error handling
2024-09-06 11:41:21 +00:00
Dhruv Dhruv
1c8a47636f
fix: [CDE-316]: Increasing timeout for gitspace start/stop to 10m from 5m. ( #2661 )
...
* fix: [CDE-316]: Changing context of instance update to non-canceable context during gitspace start/stop.
* fix: [CDE-316]: Changing context of instance update to non-canceable context during gitspace start/stop.
* fix: [CDE-316]: Increasing timeout for gitspace start/stop to 10m from 5m.
2024-09-05 11:22:17 +00:00
Arvind Choudhary
744b884c1f
fix: [AH-306c]: fix anonymous flow ( #2574 )
...
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* [AH-307]: Comments
* Merge commit
* Merge commit
* Merge commit
* Added comments
* Revert changes
* Merge commit
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* Merge branch 'AH-306d' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* fix space path handling
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-307-plus-url-support-2
* Updated URLs to support slashes with + separator
* fix: [AH-306c]: fix anonymous flow
* fix: [AH-306c]: fix anonymous flow
* feat: [AH-307]: plus url support on UI
(cherry picked from commit 3fb6add3ce03498b6668b5f8f6d547e1acedaec4)
* [AH-307]: Added examples
(cherry picked from commit e83e41303da536f421be333be04aed09fbf75f5f)
* [AH-307]: Added Regex request rewrite support
(cherry picked from commit ed7b155256bdcd1134bc228b5705556a1233add6)
* fix: [AH-306c]: fix anonymous flow
2024-09-04 20:48:57 +00:00
Marko Gaćeša
fb99bcb8d2
add mentioned_id filter to the pull request list API ( #2635 )
...
* add mentioned_id filter to the pull request list API
2024-09-04 08:21:29 +00:00
Ansuman Satapathy
f8f54c43c7
feat: [CDE-202]: remove extra spaceID ( #2641 )
...
* feat: [CDE-202]: remove extra spaceID
* feat: [CDE-202]: remove extra spaceID
* feat: [CDE-202]: remove extra spaceID
2024-09-03 14:07:52 +00:00
Ansuman Satapathy
ec7eca7491
feat: [CDE-202]: infra provider resource cache ( #2639 )
...
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
2024-09-03 11:58:48 +00:00
Ansuman Satapathy
5cfd41ae1a
feat: [CDE-202]: infra provider resource cache ( #2637 )
...
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
* feat: [CDE-202]: infra provider resource cache
2024-09-03 09:59:29 +00:00
Marko Gaćeša
a2d2ba07aa
add user filters to the pull request list API ( #2624 )
...
* add user filters to the pull request list API
2024-09-02 09:00:50 +00:00
Marko Gaćeša
ccf267f1cc
update pull request edited field after successful merge ( #2625 )
...
* update pull request edited field after successful merge
2024-09-02 08:59:50 +00:00
Karan Saraswat
57368eba55
fix: [CODE-2316]: Send empty list in case of no repos present in space ( #2613 )
...
* fix: [CODE-2316]: Send empty list in case of no repos present in space
2024-08-29 19:34:10 +00:00
Marko Gaćeša
75042e9293
add pullreq list API for spaces ( #2606 )
...
* moved the service to the existing pullreq package
* add pullreq list API for spaces
2024-08-29 11:49:33 +00:00
Ansuman Satapathy
74e00cbcdf
feat: [CDE-244]: API for infraprovider template ( #2609 )
...
* feat: [CDE-244]: API for infraprovider template
2024-08-29 04:45:29 +00:00
Marko Gaćeša
6b12b45950
add log entries for rejected merges ( #2604 )
...
* add log entries for rejected merges
2024-08-28 12:51:42 +00:00
Karan Saraswat
55d2b1dee3
feat: [CODE-2297]: add dry run param for delete branch API ( #2590 )
...
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-2297
* updated comment
* worked on review comments and added to openapi spec
* return empty violations array when dry_run = true
* feat: [CODE-2297]: add dry run param for delete branch API
2024-08-28 08:39:04 +00:00
Darko Draskovic
0346a91cda
Fix label value define permissions ( #2596 )
...
* Simplify if test and keep check- prefix
* Fix label value define permissions
2024-08-27 17:12:42 +00:00
Akhilesh Pandey
0578be8afe
feat: [CODE-1941]: user group changes ( #2134 )
...
* feat: [CODE-1941]: remove usergroup filter from request
* feat: [CODE-1941]: decrement page for harness-core
* feat: [CODE-1941]: update pagination request
* feat: [CODE-1941]: change interface from find to list
* feat: [CODE-1941]: change reviewer add permissions
* feat: [CODE-1941]: comments
* feat: [CODE-1941]: comments
* fix wire issues
* feat: [CODE-1941]: remove users from the db table usergroups
* feat: [CODE-1941]: annotate errors
* feat: [CODE-1941]: annotate errors
* feat: [CODE-1941]: sql style
* feat: [CODE-1941]: revert common.go change for parse limit
* feat: [CODE-1941]: move usergroup listing to space level
* feat: [CODE-1941]: update usergroup listing and update delete to push permission
* feat: [CODE-1941]: Update combined listing
* feat: [CODE-1941]: Update combined listing
* feat: [CODE-1941]: format
* feat: [CODE-1941]: rebase
* feat: [CODE-1941]: separate db struct for usergroup.go
* feat: [CODE-1941]: change usergroup filter to default query and review comments
* feat: [CODE-1941]: change usergroup filter to default
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: change return type for search service interface
* feat: [CODE-1941]: Search Service interface and wire changes
* feat: [CODE-1941]: Search Service interface and wire changes
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change - codeformat
* feat: [CODE-1941]: Search UserGroups Handler change
* feat: [CODE-1941]: Big change: New LOGIC for UserGroup Reviewers
* feat: [CODE-1941]: DB changes
* feat: [CODE-1941]: listing api
* feat: [CODE-1941]: mapping methods
* feat: [CODE-1941]: list method for pullreq_reviewers db
* feat: [CODE-1941]: database queries
* feat: [CODE-1941]: database queries
* feat: [CODE-2058]: dbstore changes
* feat: [CODE-1941]: Controller and Database code
* feat: [CODE-1941]: update reviewer_add.go code
* feat: [CODE-1941]: update reviewers and usergroup db migrations
* feat: [CODE-1941]: Update API ops
* feat: [CODE-1941]: Update DB ops for reviewers
* feat: [CODE-1941]: db migration update
* feat: [CODE-1941]: db migration update
* feat: [CODE-1941]: code comments
* feat: [CODE-1941]: update migration numbering
* feat: [CODE-1941]: Add postgresql migrations
* feat: [CODE-1941]: Update DB ops for reviewers
feat: [CODE-1941]: Update API ops
feat: [CODE-1941]: update reviewers and usergroup db migrations
feat: [CODE-1941]: update reviewer_add.go code
feat: [CODE-1941]: break pr
feat: [CODE-1941]: break pr
feat: [CODE-1941]: Update migration numbering
* feat: [CODE-1941]: create table usergroups
* feat: [CODE-1941]: table migrations
* feat: [CODE-1941]: user group changes
2024-08-26 15:35:27 +00:00
Marko Gaćeša
34292b022e
fix space path handling ( #2577 )
...
* fix space path handling
2024-08-26 13:13:25 +00:00
Darko Draskovic
af6e94ba2c
Use repo edit and repo view permissions for space label handling ( #2569 )
...
* Use repo edit and repo view permissions for space label handling
2024-08-23 17:03:52 +00:00
Dhruv Dhruv
98e5f7c498
feat: [CDE-256]: Making gitspace delete async. ( #2563 )
...
* feat: [CDE-256]: Making gitspace delete async.
2024-08-22 07:36:05 +00:00
Tudor Macari
40ee05ca11
feat: [AH-309]: Artifact Registry integration ( #2318 )
2024-08-22 00:28:17 +00:00
Yogesh Chauhan
59614e73f4
feat: [ML-302]: Framework For Harness Intelligence APIs ( #2547 )
...
* feat: [ML-302]: Framework For Harness Intelligence APIs
2024-08-20 22:05:29 +00:00
Atefeh Mohseni Ejiyeh
d2dcc9213b
feat: [CODE-2245] (Public Access) Enforce repo-review permission ( #2522 )
...
* updated permission with review wherever is needed
2024-08-20 16:33:59 +00:00
Darko Draskovic
0952d00a31
Add label scope to label activity ( #2545 )
...
* Add label scope to label activity
2024-08-20 13:54:43 +00:00
Kapil Garg
516fd5c1ca
add scm provider in lookup repo ( #2544 )
...
* fix: [CDE-244]: added validation for missing URL ref
* fix: [CDE-244]: added validation for missing URL ref
* fix: [CDE-244]: added validation for missing URL ref
* treat empty input as unknown repo type
* add scm provider in lookup repo
2024-08-20 13:16:32 +00:00
Darko Draskovic
cd5de8fe62
Fix pullreq count when applying label/value id filter ( #2525 )
...
* Add sanitize func related to label define/update
* Fix pullreq count when applying label/value id filter
2024-08-20 10:46:20 +00:00
Ansuman Satapathy
93af2c724e
feat: [CDE-192]: show user info for gitspace listing. ( #2531 )
...
* feat: [CDE-192]: added TODO to move to user int as key
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: added created by col for gitspace config
* feat: [CDE-192]: wire principal info cache
* feat: [CDE-192]: show user info for gitspace listing.
* feat: [CDE-192]: show user info for gitspace listing.
2024-08-20 09:34:10 +00:00
Atefeh Mohseni Ejiyeh
8d487921a6
feat: [CODE-2259]: update allowed repo states list for reposettings APIs ( #2538 )
2024-08-20 01:22:55 +00:00
Ansuman Satapathy
54113d4b06
fix: [CDE-192]: correctly set resources for infraprovider config. ( #2527 )
...
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: db show ids in error
* fix: [CDE-192]: correctly set resources for infraprovider config.
2024-08-19 07:48:37 +00:00
Enver Biševac
6d0db9512e
feat: instrumentation, intitial work ( #2475 )
...
* requested changes
* requested changes
* feat: instrumentation, intitial work
2024-08-18 22:04:34 +00:00
Ansuman Satapathy
eccb57fffe
fix: [CDE-192]: correctly set resources for infraprovider config. ( #2524 )
...
* fix: [CDE-192]: correctly set resources for infraprovider config.
2024-08-16 12:02:43 +00:00
Ansuman Satapathy
2f3b6a6f85
feat: [CDE-177]: Update listing page for CDE ( #2506 )
...
* feat: [CDE-207]: Fixed typecheck (#2513 )
* feat: [CDE-207]: remove currentUserInfo app prop
* Merge branch 'CDE-207-FixTypeCheck' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-207-FixTypeCheck
* feat: [CDE-207]: remove currentUserInfo app prop
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* fix lint errors (#2520 )
* add copyright header
* add copyright header
* fix lint errors
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: fix gitspace instance store
* Merge remote-tracking branch 'origin/main' into CDE-New
* add secret resolver in gitness (#2493 )
* rename identifier to space identifier
* update factory method
* remove access_key from gitspace table
* add access key and type to devcontainer exec
* add migration for gitspace access key ref
* fix error message for resolver factory
* update resolver interface
* add secret resolver in gitness
* feat: [CDE-192]: correctly update date and sync update
* Merge remote-tracking branch 'origin/main' into CDE-New
# Conflicts:
# app/api/controller/gitspace/action.go
# app/api/controller/gitspace/delete.go
* feat: [CDE-192]: correctly update dates for updated
* feat: [CDE-192]: handle empty inputparams
* feat: [CDE-192]: handle empty inputparams
* Merge remote-tracking branch 'origin/main' into CDE-New
* Merge remote-tracking branch 'origin/main' into CDE-New
* feat: [CDE-207]: Use SCM api hook (#2499 )
* feat: [CDE-207]: Updated Strings
* feat: [CDE-207]: Use SCM api hook
* feat: fixed string issue (#2476 )
* feat: [CDE-211]: fixed lint issues
* feat: [CDE-211]: fixed lint issues
* feat: fixed string issue
* feat: fixed string issue (#2474 )
* feat: fixed string issue
* add ssh identifier in map functions in gitness store
* add ssh fields in types
* feat: fixed GitspaceCodeRepoType in create payload
* feat: updated common hooks
* feat: update for listing
* feat: update for listing
* feat: removed cde folder
* feat: [CDE-177]: Update listing page for CDE
2024-08-16 06:46:02 +00:00
Atefeh Mohseni Ejiyeh
aa66cca792
fix: [CODE-2192]: (Swagger) Add Update default-branch API ( #2519 )
...
* add update default branch open api
2024-08-16 00:45:45 +00:00
Darko Draskovic
c3c75d47aa
Refactor router and openapi related to labels to export setup funcs and params ( #2500 )
...
* Refactor router and openapi related to labels to export setup funcs and params
2024-08-14 14:06:04 +00:00
Dhruv Dhruv
dcf2068873
feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows. ( #2505 )
...
* feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows.
2024-08-14 11:57:19 +00:00
Ansuman Satapathy
f247c70311
feat: [CDE-192]: ignore deleted spaces during fetching gitspaces for account ( #2465 )
...
* feat: [CDE-192]: ignore deleted spaces during fetching gitspaces for account
2024-08-11 08:30:37 +00:00
Ansuman Satapathy
65b3cabf8f
feat: [CDE-192]: validate url scheme for repos for gitspaces ( #2464 )
...
* feat: [CDE-192]: validate url scheme for repos for gitspaces
2024-08-11 07:04:10 +00:00
Ansuman Satapathy
c94fd94d77
feat: [CDE-192]: updated missing swagger ( #2430 )
...
* feat: [CDE-192]: updated missing swagger
* feat: [CDE-192]: updated missing swagger
2024-08-08 06:49:37 +00:00
Atefeh Mohseni Ejiyeh
cef6708a1e
Support Repo Migration APIs (create repo, import PRs, webhooks, and branch rules) ( #2158 )
...
* update migrator mdoule
* added formatted forbidden error helper
* delete work sum
* check branch rule identifier check
* match migrator data contract for webhooks
* self review
* self review
* self review, code cleaning
* resolve conflicts
* updated import api calls
* resolve conflicts
* lint
* bypass pre-receive block ref update on push if it's migrator push
* migrate controller and apis
* pull main
* add migrate routes to terminate path prefix apis
* move apis to migrate pkg
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into atmsn/import_meta
* import branch rules API
* wip import webhooks
2024-08-07 23:40:09 +00:00
Darko Draskovic
b1ac141460
Add list labels per pr to pr list ( #2372 ) ( #2387 )
...
* Add list labels per pr to pr list (#2372 )
* Refactor to pullreq(s) backfill funcs
* Add list labels per pr to pr list
2024-08-07 15:32:30 +00:00
Marko Gaćeša
4b289c1232
feat: [CODE-2153]: add limits on PR text fields ( #2412 )
2024-08-07 10:07:41 +00:00
Ansuman Satapathy
9fc9a498e2
feat: [CDE-192]: modularize gitspace services ( #2404 )
...
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: resource identifier empty
* feat: [CDE-192]: address comments
* feat: [CDE-192]: split config and resource creation
* feat: [CDE-192]: split config and res creation
* feat: [CDE-192]: modularize gitspace services
2024-08-07 08:27:29 +00:00
Johannes Batzill
8e7398d362
Inject X-Allow-Public-Access Header For UI ( #2300 )
2024-08-05 23:39:16 +00:00
Ansuman Satapathy
6338af6336
feat: [CDE-192]: modularize gitspace services ( #2396 )
...
* feat: [CDE-192]: modularize gitspace services
* feat: [CDE-192]: modularize gitspace services
2024-08-05 10:00:48 +00:00
Darko Draskovic
497c426a01
Add list labels per pr to pr list ( #2372 )
...
* Refactor to pullreq(s) backfill funcs
* Add list labels per pr to pr list
2024-08-02 11:57:09 +00:00
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
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
Darko Draskovic
0cb3c8a4cf
Add render pagination and incremental search to labels ( #2311 )
...
* Remove unused upsert method from label value store
* Add render pagination and incremental search to labels
2024-07-30 15:43:31 +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
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
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
Ritik Kapoor
3539266fb3
fix: [code-2114] API redirecting to Login ( #2245 )
...
* fix: [code-2114] return Unauthorized for anonymous principal call to user api
* fix: [code-2114] API redirecting to Login
2024-07-19 18:46:22 +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
b3d9a58c5c
feat: [CDE-142]: specify resource for a gitspace in api call ( #2249 )
...
* feat: [CDE-142]: specify resource for a gitspace in api call
2024-07-19 05:56:35 +00:00
Marko Gaćeša
340cdd659c
feat: [CODE-2086]: backfill PR stats data for list PRs API ( #2234 )
...
* backfill PR stats data for list PRs API
2024-07-18 12:18:03 +00:00
Enver Biševac
da44afe021
improve audit logs ( #2242 )
...
* improve audit logs
2024-07-18 12:15:31 +00:00
Dhruv Dhruv
dfb69afade
fix: [CDE-179]: Fixing gitspaces OpenAPI spec. ( #2246 )
...
* fix: [CDE-179]: Fixing gitspaces OpenAPI spec.
2024-07-18 09:19:34 +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
Ansuman Satapathy
b7e720c220
feat: [CDE-142]: gitspace count query optimization ( #2230 )
...
* feat: [CDE-142]: gitspace count query optimization
* feat: [CDE-142]: gitspace count query optimization
2024-07-16 07:59:17 +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
Johannes Batzill
7d5ac7b45c
fix: [CODE-2114]: Return 404 if anonymous makes user restricted call ( #2225 )
2024-07-15 19:07:14 +00:00
Enver Biševac
7c2c732c9f
fix complex file extensions like tar.gz ( #2143 )
...
* fix complex file extensions like tar.gz
2024-07-15 14:41:58 +00:00
Dhruv Dhruv
afd24f911b
feat: [CDE-146]: API to list all gitspaces for a user. ( #2209 )
...
* feat: [CDE-146]: Addressing review comments-
restructuring method.
* feat: [CDE-146]: API to list all gitspaces.
* feat: [CDE-146]: API to list all gitspaces.
* feat: [CDE-146]: API to list all gitspaces for a user.
2024-07-15 09:43:50 +00:00
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
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
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
Marko Gaćeša
4ac42fc6c9
Add additions and deletions to PRs ( #2196 )
2024-07-11 10:01:17 +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
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
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
Atefeh Mohseni Ejiyeh
d06dd5c2fd
fix:update default branch for empty repos if doesnt exist ( #2127 )
2024-06-28 02:16:39 +00:00
Johannes Batzill
4c4924495c
[Fix] Fix .git
path rewriting for end of path scenarios ( #2117 )
2024-06-17 21:19:41 +00:00
Dhruv Dhruv
64268b96c3
feat: [CDE-69]: Making page and limit query params in openapi spec public. ( #2114 )
2024-06-16 03:41:10 +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
Atefeh Mohseni Ejiyeh
b005db9920
fix: Return Unauthorized for /user endpoint APIs if session is anonymous ( #2102 )
2024-06-13 02:05:26 +00:00