Commit Graph

360 Commits

Author SHA1 Message Date
Karan Saraswat
a5f510c4b2 feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking session argument (#3345)
* argument changed to session
* fixed failing go lint check
*

updated method usage
*

corrected spelling mistake
*

feat: [PIPE-23710]: changed signature of RepoIdentifier to start taking internal boolean argument
2025-02-04 09:18:16 +00:00
Marko Gaćeša
530a707052 feat: [CODE-3076]: update several refs on merge (#3355)
* resolve pr comments
* update several refs on merge
2025-02-03 10:52:01 +00:00
Enver Biševac
92e39dee79 feat: [CODE-3129]: add ignore whitespace for diff (#3327)
* better parsing of query param ignore_whitespace
* replace hideWhitespace with ignoreWhitespace
* replace rest client literals with vars
* added openapi
* add ignore whitespace for diff
2025-01-31 21:48:57 +00:00
Darko Draskovic
2f9d9583e6 feat: [CODE-1805]: Add service account rule bypass list support (#3297)
* Make service account store code more consistent
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Remove principal controller interface
* Address review comments
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Add pagination to repo/space list service account
* Revert to non embedded Principal to ServiceAccount
* Merge remote-tracking branch 'origin/main' into dd/service-account-bypass
* Add query param to service account list
* Add inherited param to principal filter
* Merge remote-tracking branch 'origin/main' into akp/CODE-1805
* Merge remote-tracking branch 'origin/main' into akp/CODE-1805
* Return service account info instead of vanilla service account
* Return principal info to return id instead o
2025-01-31 17:46:24 +00:00
Marko Gaćeša
6f37eaea3f fix: [CODE-3120]: reload repo in repo summary API controller (#3356)
* reload repo in repo summary API controller
2025-01-30 16:09:55 +00:00
Yogesh Chauhan
2130f7f9a4 [fix]: [ML-575]: Ai Agent Fix stage type enums (#3357)
* Fix stage enums
2025-01-30 14:55:22 +00:00
Prachi Shah
6b231495c1 fix: [ML-575]: mark required fields for spec file (#3350)
* gci write
* lint errors fix
* lint errors fix
* required:'true'
* required : true
* done
* changed
* make stage type as enum according to openapi std
* remove conflicts with main
* mark fields as required
* Merge branch 'main' into ML-575
* make conversationID optional parameter in chat
* generate conversation ID in backend
* Merge branch 'main' into ML-575
* gci run
* gci run
* gci run
* gci run
* lint error fix
* gci run
* resolve comments
* re_generate to regenerate
* gci run
* lint errors fix
* lint error fix
* update actions struct correctly
* update actions struct
* lint error fix
* chat struct and two new enums for actions
* merged
* merge with ML-562
* temp
* done
* done
* remove redundant file
* fixed lint errors in submodule
* lint error fix
* Update wire_gen.go
* Update wire_gen.go
* fix lint errors
* updated error message
* changed loc of enum definitions
* new endpoint /chat
* new type chat
* original
* to original
* made required changes
* trial
* fix lint errors-3
* fi
2025-01-30 11:43:49 +00:00
Prachi Shah
5f11b9ed2d [fix]: [ML-575]: make conversationID optional parameter in chat (#3344)
* make conversationID optional parameter in chat
* generate conversation ID in backend
* Merge branch 'main' into ML-575
* gci run
* gci run
* gci run
* gci run
* lint error fix
* gci run
* resolve comments
* re_generate to regenerate
* gci run
* lint errors fix
* lint error fix
* update actions struct correctly
* update actions struct
* lint error fix
* chat struct and two new enums for actions
* merged
* merge with ML-562
* temp
* done
* done
* remove redundant file
* fixed lint errors in submodule
* lint error fix
* Update wire_gen.go
* Update wire_gen.go
* fix lint errors
* updated error message
* changed loc of enum definitions
* new endpoint /chat
* new type chat
* original
* to original
* made required changes
* trial
* fix lint errors-3
* fix lint errors-2
* fix lint errors
* 3 new enums for stagetype, messagetype, role
* enum types for stagetype, role and messagetype
* role enum and message type enum
* ML-562: New enum
2025-01-29 11:03:05 +00:00
Johannes Batzill
cbd889881b feat: [CODE-2693]: Add backend support to track time of last push. (#3320) 2025-01-27 22:03:35 +00:00
Marko Gaćeša
2fa3914fa9 feat: [CODE-3076]: create and update PR refs in the PR controller (#3319)
* update pr refs in controller
2025-01-27 13:38:55 +00:00
Prachi Shah
c1b89607ce [feat]: [ML-575]: Shifting to generic /chat endpoint (#3313)
* gci run
* gci run
* gci run
* gci run
* lint error fix
* gci run
* resolve comments
* re_generate to regenerate
* gci run
* lint errors fix
* lint error fix
* update actions struct correctly
* update actions struct
* lint error fix
* chat struct and two new enums for actions
* merged
* merge with ML-562
* temp
* done
* done
* remove redundant file
* fixed lint errors in submodule
* lint error fix
* Update wire_gen.go
* Update wire_gen.go
* fix lint errors
* updated error message
* changed loc of enum definitions
* new endpoint /chat
* new type chat
* original
* to original
* made required changes
* trial
* fix lint errors-3
* fix lint errors-2
* fix lint errors
* 3 new enums for stagetype, messagetype, role
* enum types for stagetype, role and messagetype
* role enum and message type enum
* ML-562: New enum
2025-01-24 11:07:02 +00:00
Marko Gaćeša
f016ac9ac9 feat: [CODE-3030]: introduce include_git_stats param for list PRs APIs (#3284)
* introduce include_git_stats param for list PRs APIs
2025-01-17 11:27:23 +00:00
Darko Draskovic
6554c472d1 feat: [PIPE-24548]: Add label creation to pullreq creation (#3276)
* Refactor label select base const and its use
* Add created labels to create pr response
* Merge remote-tracking branch 'origin/main' into dd/pr-creation-label-assign
* Add label creation to pullreq creation
2025-01-16 16:48:56 +00:00
Shivakumar Ningappa
c9d62fdc0e fix: [AH-626]: check for nil controller to prevent PANIC (#3280)
* fix: [AH-626]: check for nil controller to prevent PANIC
2025-01-16 07:04:07 +00:00
Marko Gaćeša
0006151b23 feat: [PIPE-24577]: define body for file upload api in openapi def (#3274)
* define body for file upload api in openapi def
2025-01-15 17:11:41 +00:00
Atefeh Mohseni Ejiyeh
f78f767ae2 feat: [CODE-2818]: Add Archive Repo functionality (#3051) 2025-01-13 19:02:51 +00:00
Yogesh Chauhan
a94be356c4 feat: [ML-531]: Introduce conversations into request DTOs for AI Devops (#3239)
* Merge branch 'main' into yogesh/ML-531-conversationsDTO
* Fixed Lint issues
* transfer fields from handler to controller
* Add to controller object
* Add conversation DTOS
2025-01-09 16:05:51 +00:00
Yogesh Chauhan
e41863edb2 fix: [ML-505]: Fix JSON key name for yaml step (#3166)
* fix: [ML-505]: Fix key name for yaml step
2025-01-07 05:54:59 +00:00
Ansuman Satapathy
083a24d8eb feat: [CDE-582]: refactor gitspaces, use spaceCache (#3227)
* feat: [CDE-582]: refactor gitspaces seperate DB layer.
* feat: [CDE-582]: refactor gitspaces seperate DB layer.
* feat: [CDE-582]: refactor gitspaces seperate DB layer.
* feat: [CDE-582]: refactor gitspaces seperate DB layer.
2025-01-07 05:06:39 +00:00
Deepak Bhatt
887379b94a feat: [CDE-563]: add intellij support (#3193)
* feat: [CDE-552]: fix lint
* feat: [CDE-552]: wait for the ide to run
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: address comments
* feat: [CDE-552}: add support for arm and amd architecture
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: fix build
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-563-intellij-support
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: add install tools, setup and run scripts for intellij
* add intellij support

# Conflicts:
#	app/gitspace/infrastructure/trigger_infra_event.go
#	app/gitspace/orchestrator/utils/script_templates/setup_intellij.sh
2024-12-30 15:19:48 +00:00
Marko Gaćeša
2b959817d5 feat: [CODE-2862]: put space fetch behind a cache (#3201)
* replaced type of the inner cache to SpaceCache
* put space fetch behind a cache
2024-12-25 11:37:40 +00:00
Enver Biševac
c94a181e7e fix: [code-2912]: minor improvements, requested changes (#3197)
* minor improvements, requested changes
2024-12-23 16:20:40 +00:00
Darko Draskovic
9d4fc2c796 feat: [CODE-2975]: Add reviewers creation to pull req creation (#3182)
* Put pull req creation in tx
* Fix auth error handling and struct/json key/field name
* Merge remote-tracking branch 'origin/main' into dd/pr-create-reviewers
* Move create reviewers functionality into a helper func
* Add reviewers creation to pull req creation
2024-12-23 14:48:52 +00:00
Enver Biševac
db38802e83 feat: [code-2912]: usage service implementation (#3168)
* feat: [code-2912]: rest and ui changes (#3178)

* requested changes
* rest and ui changes
* requested changes
* add midleware to raw and archieve endpoints
* wire fixed
* requested changes
* Merge remote-tracking branch 'origin/main' into eb/code-2912
* added initial values from db
* minor improvements
* requested changes
* remove check for bandwidth
* wiring dep
* improved test
* limits check added
* config added, minor improvements
* usage service implementation
2024-12-20 10:28:47 +00:00
Darko Draskovic
265eb40f22 feat: [CODE-1353]: Add status check and merge check SSE events (#3146)
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add webhook create/update/delete event
* Add branch/tag created/updated deleted events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add new event types
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add logs directly to publisher
* Merge remote-tracking branch 'origin/main' into dd/sse-events
* Add status check and merge check SSE events
2024-12-18 16:00:58 +00:00
Akhilesh Pandey
694e790091 feat: [CODE-2679]: Comment status update changes (#2943) (#3006)
* feat: [CODE-2472]: update wire
* feat: [CODE-2472]: update wire
* feat: [CODE-2472]: update wire
* feat: [CODE-2742]: update comments
* Merge branch 'main' into akp/CODE-2472
* feat: [CODE-2472]: naming and comment
* Apply suggestion from code review
* feat: [CODE-2472]:  remove file
* feat: [CODE-2472]:  Created issue
* feat: [CODE-2472]:  Review
* feat: [CODE-2472]:  rebase
* feat: [CODE-2679]: Comment status update changes (#2943)

* rebase
* feat: [CODE-2679]: review
* feat: [CODE-2679]: wire changes
* feat: [CODE-2679]: Comment status update changes
* feat: [CODE-2679]: Comment status update changes
* feat: [CODE-2472]: fix minor issues
* feat: [CODE-2472]: Update the timestamps
* feat: [CODE-2472]: Pullreq comment updated changes
* feat: [CODE-2472]: changes
* feat: [CODE-2472]: update name to edited
* feat: [CODE-2472]: update name to edited
* feat: [CODE-2472]: status change comment changes
* feat: [CODE-2472]: Text changes only
* feat: [CODE-2472]: initial code
2024-12-18 06:27:39 +00:00
Johannes Batzill
096b86da47 fix: [CODE-2942]: space level permission checks for status checks and webhooks (#3167) 2024-12-16 22:19:47 +00:00
Yogesh Chauhan
aed116a24b fix: [ML-505]: changes to support update-step API for Harness Intelligence (#3156)
* Fix some lint issues
* fix more lint issues
* Fix linting
* fix: [ML-505]: add step context
* fix: [ML-505]: fix interface for update step
* fix: [ML-505]: interface for update step
* fix: [ML-505]: interface for update step
* fix: [ML-505]: structs for update step
2024-12-16 11:42:40 +00:00
Darko Draskovic
0af4f33a8b fix: [CODE-2855]: Fix list recent status check on space lavel permission (#3162)
* Fix list recent status check on space lavel permission
2024-12-13 16:34:54 +00:00
Abhinav Singh
c7f7ade6b6 feat: [CODE-2886]: jira auth support (#3119) 2024-12-12 19:36:08 +00:00
Darko Draskovic
c05e7057dc feat: [CODE-1353]: Add SSE events for rules and reviewer add/remove (#3141)
* Add SSE events
2024-12-10 11:24:31 +00:00
Ansuman Satapathy
57a2cb6e44 feat: [CDE-545]: add a seperate events for gitspace routing (#3142)
* feat: [CDE-545]: add a seperate events for gitspace routing
* feat: [CDE-545]: add a seperate events for gitspace routing
2024-12-10 11:23:36 +00:00
Johannes Batzill
5698383d44 fix: [CODE-2908]: Fix permission checks for space level rule + label operations (#3123) 2024-12-06 21:59:07 +00:00
Yogesh Chauhan
f82dd44d57 fix: [ML-505]: Fix generate step API input type (#3120)
* fix: [ML-505]: Fix generate step API input type
2024-12-06 10:18:29 +00:00
Ansuman Satapathy
a515a57299 feat: [CDE-545]: check during provision retry for latest instance (#3114)
* feat: [CDE-545]: check during provision retry for latest instance
* feat: [CDE-545]: check during provision retry for latest instance
2024-12-05 05:25:02 +00:00
Abhinav Singh
bd9d15500c feat: [CODE-2885]: support for webhook type (#3098) 2024-12-05 02:01:08 +00:00
Atefeh Mohseni Ejiyeh
a9fed4271a fix: [CODE-2896]: Audit logs data on create repo by the migrator (#3112) 2024-12-05 01:31:07 +00:00
Karan Saraswat
423702f0c0 feat: [PIPE-23720]: add author details to the commits API (#3095)
* addressed review comment
* feat: [PIPE-23720]: add author details to the commits API
2024-12-03 17:35:07 +00:00
Darko Draskovic
18da27f968 feat: [CODE-2857]: Add checks API to spaces (#3084)
* Fix stmt reassignment
* Add get descendent ids helper to space store
* Add checks API to spaces
2024-12-03 15:31:56 +00:00
Ansuman Satapathy
c65f994af9 feat: [CDE-522]: send total gitspaces without applying user filters in header (#3089)
* feat: [CDE-522]: formatting
* feat: [CDE-522]: formatting
* feat: [CDE-522]: send total gitspaces without applying user filters in header
* feat: [CDE-522]: send total gitspaces without applying filter in header
2024-12-02 07:03:22 +00:00
Ansuman Satapathy
062ab0b3e9 fix: [CDE-525]: fix nil reference during deletion (#3067)
* fix: [CDE-525]: fix nil reference during deletion
* fix: [CDE-525]: fix nil reference during deletion
* fix: [CDE-525]: fix nil reference during deletion
2024-11-28 12:08:25 +00:00
Yogesh Chauhan
a89041e57e feat: [ML-334]: Extract interface for Intelligence service (#3066)
* Fix copyright header
* Fix lint issues wrt copyright & comment structure
* feat: [ML-334]: Extract interfae for Intelligence service
2024-11-28 10:48:23 +00:00
Vivek Dixit
ed0e904c59 [feat]: [ML-498]: Remved RepoRef from context being sent to LLMs (#3061)
* Addressed Comments
* Fixed GoLint Issues
* [feat]: [ML-498]: Remved RepoRef from context being sent to LLMs
2024-11-28 07:28:38 +00:00
Darko Draskovic
1c0e049151 fix: [CODE-2855]: Use space permissions in labels and rules controllers (#3060)
* Use space permissions in labels and rules controllers
2024-11-27 17:22:55 +00:00
Darko Draskovic
d114c23f01 fix: [CODE-2845]: Change space permissions for space rules to repo permissions (#3044)
* Change space permissions for space rules to repo permissions
2024-11-25 15:11:10 +00:00
Marko Gaćeša
f1eb44a30a feat: [CODE-2531]: ignore not found error in delete repo (#3023)
* remove err==NotFound check in controller layer
* ignore not found error in delete repo
2024-11-22 10:24:00 +00:00
Vivek Dixit
3f54161997 [feat]: [ML-488]: Added New API for StepYamlGeneration for UI to call separately. (#3030)
* fixed go-lint issues
* [feat]: [ML-488]: Added New API for StepYamlGeneration for UI to call separately.
2024-11-22 07:55:26 +00:00
Deepak Bhatt
266e7a7866 feat: [CDE-507]:add connector details to gitspace config (#3020)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into pull-image-secret
* modify resume gitspace
* unchange provision func
* change provision func
* remove unnecessary arg
* add password field
* modify platform connector type
* remove unnecessary func
* fix lint
* remove docker registry
* modify event name
* add connector details package
* separate types into different files
* fix lint
* change func name
* change func name
* change connector name
* change package name
* add git config arg
* add comment
* remove unused const
* change event name
* fix wire gen
* add wire for artifact registry
* remove fmt print
* add artifact secret resolver
2024-11-22 06:21:10 +00:00
Darko Draskovic
335eaa73c1 feat: [CODE-2498]: Add time and author filter params to list commits page (#3000)
* Remove redundant consts and annotate errors
* Add a Regex bool field to the api.CommitFilter
* Add use author/commiter regex bool to list commit filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add commiter IDs
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add regex quote for author
* Add time and author filter params to list commits page
2024-11-21 10:31:32 +00:00
Darko Draskovic
fd9a1ad400 feat: [CODE-2568]: Add rules API for space level (#2865)
* Add openapi spec for space rules
* Merge branch 'main' into dd/space-branch-rules
* Fix doc comments and space permissions
* Merge branch 'main' into dd/space-branch-rules
* Add equal check to update rule
* Merge branch 'main' into dd/space-branch-rules
* Use consistently RuleParentInfo
* Add RuleParentInfo type
* Merge branch 'main' into dd/space-branch-rules
* Rename r to rule in funcs and rule to protection
* Merge remote-tracking branch 'origin/main' into dd/space-branch-rules
* Unifiy instrumentation and audit handling
* Add delete, find, list and patch svc funcs and API endpoints
* Add rules API for space level
2024-11-19 12:52:27 +00:00