Commit Graph

339 Commits

Author SHA1 Message Date
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
Akhilesh Pandey
ab72ca9185 feat: [CODE-2472]: CODE Comment updated webhook (#2850)
* feat: [CODE-2472]: review
* feat: [CODE-2742]: review changes
* feat: [CODE-2742]: cast extractor code return
* feat: [CODE-2742]: wire changes
* feat: [CODE-2742]: wire changes
* Merge branch 'main' into akp/CODE-2472
* Apply suggestion from code review
* review changes
* Apply suggestions from code review
* feat: [CODE-2472]: remove commit info
* feat: [CODE-2472]: remove json tags
* feat: [CODE-2472]: wire changes
* feat: [CODE-2472]: fix minor issues
* Merge branch 'main' into akp/CODE-2472
* 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
* Merge branch 'main' into akp/CODE-2472
* feat: [CODE-2472]: status change comment changes
* feat: [CODE-2472]: Text changes only
* feat: [CODE-2472]: initial code
2024-11-14 22:48:04 +00:00
Ansuman Satapathy
d9d00e9e06 feat: [CDE-481]: for the plugin, only show self gitspaces (#2997)
* feat: [CDE-481]: for the plugin, only show self gitspaces
* feat: [CDE-481]: for the plugin, only show self gitspaces
2024-11-14 03:52:22 +00:00
Deepak Bhatt
622f6d232c fix: [CDE-483]: modify remove gitspace func (#2989)
* add debug log
* capture error
* modify remove gitspace func
2024-11-13 09:11:26 +00:00
Karan Saraswat
123969c7e1 feat: [PIPE-23137]: updated executionInfo struct with more data and added lastExecutions to list space pipelines API (#2958)
* fixed go lint
* fixed go lint
* feat: [CODE-23137]: added execution summary data to list space pipelines API
2024-11-08 19:08:20 +00:00
Karan Saraswat
0cd3e0693f feat: [PIPE-22871]: API for listing executions for a project/space (#2941)
* fixed go lint
* added header
* Apply suggestions from code review
* feat: [PIPE-22871]: added filters for list space executions API
* feat: [PIPE-22871]: count of pipelines db query will be run if there is more than 1 page
* removed pipelineId ans repoId from executionPipelineRepoJoin
* fixed go lint
* addressed review comments
* Apply suggestions from code review
* Apply suggestions from code review
* fixed lint
* feat: [PIPE-22871]: API for listing executions for a project/space
2024-11-08 11:55:40 +00:00
Andreas Deininger
ff2da8563e [GH] Fix typos (#3566)
This PR fixes various typos i spotted in the project.
2024-11-07 11:34:07 -08:00
Deepak Bhatt
d6f64c8af6 feat: [CDE-460]:filter events for cde (#2950)
* filter events
2024-11-07 14:11:51 +00:00
Ansuman Satapathy
0469b4352e feat: [CDE-466]: added a transient state during deletion (#2949)
* feat: [CDE-466]: added a transient state during deletion
* feat: [CDE-466]: added a transient state during deletion
2024-11-07 13:17:04 +00:00
Ansuman Satapathy
cb200c85c3 feat: [CDE-460]: added events for resetting infra (#2948)
* feat: [CDE-460]: added events for resetting infra
2024-11-07 10:15:47 +00:00
Deepak Bhatt
f79d785f60 fix: [CDE-438]: modify filter logic for marked-for-deletion field (#2935)
* modify delete api
* modify filter logic for marked-for-deletion field
2024-11-06 08:06:56 +00:00
Ansuman Satapathy
affbffc2ea fix: [CDE-454]: added events for cleaning-up infra (#2934)
* fix: [CDE-454]: added events for cleaning-up infra
2024-11-06 04:45:39 +00:00
Ansuman Satapathy
975cec7f53 fix: [CDE-454]: gitspaces increase timeout for long postCreate scripts (#2926)
* fix: [CDE-454]: increase timeout for long postCreate scripts
* fix: [CDE-454]: increase timeout for long postCreate scripts
* fix: [CDE-454]: increase timeout for long postCreate scripts
* fix: [CDE-454]: increase timeout for long postCreate scripts
2024-11-05 13:41:39 +00:00
Marko Gaćeša
0db33abeb1 feat: [PIPE-22454]: add PR metadata in get/list PR API response (#2912)
* add PR metadata in PR API response
2024-11-05 12:02:44 +00:00
Deepak Bhatt
516fadfe8f fix: [CDE-290]: modify list function for gitspaces (#2908)
* feat: [CDE-332]: debugging
* feat: [CDE-332]: debugging
* feat: [CDE-332]: debugging
* feat: [CDE-332]: debugging
* feat: [CDE-332]: fix subquery no alias
* feat: [CDE-332]: fix subquery no alias
* feat: [CDE-332]: fix subquery no alias
* feat: [CDE-332]: fix subquery no alias
* feat: [CDE-332]: remove duplication of code
* feat: [CDE-332]: remove duplication of code
* feat: [CDE-332]: remove duplication of code
* 

feat: [CDE-332]: remove duplication of code
* 





modify list all
* 





fix lint
* 





add sorting
* 





modify list function
2024-11-01 06:07:53 +00:00
Akhilesh Pandey
b848c642fc feat: [CODE-2425]: Add webhook and trigger for all comment types (#2815)
* feat: [CODE-2425]: Arg format
* Merge branch 'main' into akp/CODE-2425
* feat: [CODE-2425]: return immediately in notification service if its a code-comment
* feat: [CODE-2425]: send gitness comment type
* Merge branch 'main' into akp/CODE-2425
* feat: [CODE-2425]: Add webhook and trigger for all comment types
2024-10-30 16:32:06 +00:00
Marko Gaćeša
d79a1a290c feat: [PIPE-21976]: add flattened directory listing (#2869)
* remove unused parameter
* updated open api to include flatten_driectories param
* add flattened directory listing
2024-10-30 13:26:42 +00:00
Ansuman Satapathy
8a28d1b04b feat: [CDE-332]: upsert gitspaces infraprovider (#2909)
* feat: [CDE-332]: lint issues
* feat: [CDE-332]: upsert infraprovider resources
2024-10-30 12:33:02 +00:00
Dhruv Dhruv
6dbe85fbfd fix: [CDE-413]: Setting branch URL in all gitspace API response (#2881)
* 

fix: [CDE-413]: Adding spacePath to method.
* 

fix: [CDE-413]: Adding method to get branch url in the scm interface and using it to set the branch url in the gitspace config api responses. Removing the SCM interface as it has only 1 impl. Minor refactoring.
* 

fix: [CDE-413]: Adding method to get branch url in the scm interface and using it to set the branch url in the gitspace config api responses. Removing the SCM interface as it has only 1 impl. Minor refactoring.
2024-10-29 04:46:03 +00:00
Ansuman Satapathy
0d84fa85ff feat: [CDE-332]: remove unused and duplicate templateID gitspaces (#2884)
* feat: [CDE-332]: remove unused and duplicate templateID gitspaces
* 

feat: [CDE-332]: remove unused and duplicate templateID gitspaces
* 

feat: [CDE-332]: remove unused and duplicate templateID gitspaces
2024-10-28 13:04:17 +00:00
Deepak Bhatt
6983438ec2 feat: [CDE-391]:add infrastruce and orchestrator funcs (#2841)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* change name
* increase scope of delete
* change func name
* modify delete api
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* add delete and handler condition
* address comment
* handle cleanup event
* update enum mapping
* find destroyed infra as well
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* modify find signature
* Merge branch 'add-force-delete-job-funcs' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* 



address feedback 2
* 



address feedback
* 



Apply suggestion from code review
* 



Apply suggestion from code review
* 



remove std out
* 



add infrastruce and orchestrator funcs
* 



add and modify infra provider methods

Add cleanupInstanceResources method
Modify Deprovision method and make it idempotent
* address feedback 2
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* Merge branch 'add-force-delete-job-funcs' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* address feedback
* Apply suggestion from code review
* Apply suggestion from code review
* remove std out
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* add infrastruce and orchestrator funcs
* add and modify infra provider methods

Add cleanupInstanceResources method
Modify Deprovision method and make it idempotent
2024-10-28 05:30:14 +00:00
Ansuman Satapathy
f3016357d3 feat: [CDE-332]: added an event and method for auto-stopping (#2876)
* feat: [CDE-332]: added an event and method for auto-stopping
2024-10-28 05:06:08 +00:00