Karan Saraswat
ecb89514f4
feat: [CODE-3895]: Add map operation to favorites db layer ( #3815 )
...
* added full stop in front of comment
* formatted error log line
* formatted the code
* feat: [CODE-3895]: fix favorites db layer based on the sql driver
* corrected error moessage
* fix map for foundIDs
* feat: [CODE-3895]: Add map operation to favorites db layer
2025-05-22 17:37:36 +00:00
Karan Saraswat
814981c613
feat: [CODE-3870]: Add only_favorites query param to repo listing API ( #3802 )
...
* Apply suggestion from code review
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-3870
* formatted files
* moved onlyFavoritesFor logic to applyQueryFilter
* merge develop
* feat: [CODE-3870]: Add only_favorites query param to repo listing API
* added nolint:exhaustive
* fixed header for types/favorite.go
* formatted database/favorite.go file
* addressed review comments
* use ID in the favorite struct
* feat: [CODE-3869]: Create db layer for favorites
2025-05-22 08:08:30 +00:00
Vikyath Harekal
3fe468c81f
feat: [CDE-785]: Migration to drop agent port column as we'll be using the task_details map to store it ( #3813 )
...
* feat: [CDE-785]: Migration to drop agent port column as we'll be using the task_details map to store it
2025-05-22 05:53:59 +00:00
Vikyath Harekal
9535541401
feat: [CDE-785]: Refactor providers ( #3807 )
...
* feat: [CDE-785]: Refactor providers
* feat: [CDE-785]: Refactor providers
2025-05-21 15:52:46 +00:00
Karan Saraswat
ee8b14a12f
feat: [CODE-3869]: Create db layer for favorites ( #3798 )
...
* fixed lint
* added nolint:exhaustive
* fixed header for types/favorite.go
* formatted database/favorite.go file
* addressed review comments
* use ID in the favorite struct
* feat: [CODE-3869]: Create db layer for favorites
2025-05-21 14:31:07 +00:00
Ansuman Satapathy
7137cea575
feat: [CDE-676]: added filter for code repo type for listing gitspaces. ( #3803 )
...
* feat: [CDE-676]: added filter for code repo type for listing gitspaces.
2025-05-21 05:00:31 +00:00
Darko Draskovic
60bc0a7d79
feat: [CODE-3788]: Add tag rule type ( #3761 )
...
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Use strings builder
* Add rule type string slice flatten for sqlite
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Revert to force update
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Add separate life cycle rules for tags and branches
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Remove reflection
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Rename GetRuleInfos to GetBranchRuleInfos
* Add update tag pre-receive violation
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Merge remote-tracking branch 'origin/main' into dd/tag-rules
* Add unit tests for tagRuleSet
* Add pre-receive tag protection rule
* Rename funcs, export interfaces and further generalize/reuse rule set funcs
* Extract common rule set funcs in set_common.go
* Use ruleTypes ...types.RuleType in ListAllRepoRules store func
* Merge remote-tracking branch 'origin/main'
2025-05-20 15:24:30 +00:00
Enver Biševac
389fa0029d
feat: [code-3827]: usage metrics enhancement ( #3794 )
...
* only count active repositories
* requested changes
* usage metrics enhancement
2025-05-20 10:14:15 +00:00
Johannes Batzill
72d7ea8dd4
chore: [CODE-3864]: Improve error log verbosity for better debugability ( #3796 )
2025-05-19 22:53:55 +00:00
Marko Gaćeša
90ac3677ae
feat: [CODE-2548]: add PGP keys ( #3781 )
...
* add PGP keys
2025-05-16 11:13:41 +00:00
Deepak Bhatt
e02663168a
Feat: [CDE-734]: add methods for fetching gitspace attributes for access check ( #3774 )
...
* Feat: [CDE-734]: return val and not pointer
* Feat: [CDE-734]: add todo
* Feat: [CDE-734]: fix issue
* Feat: [CDE-734]: add log
* Feat: [CDE-734]: fix order
* Feat: [CDE-734]: fix dst slice
* Feat: [CDE-734]: fix dst slice
* Feat: [CDE-734]: fix lint
* Feat: [CDE-734]: return ids in same order
* Feat: [CDE-734]: fix lint
* Feat: [CDE-734]: add methods for fetching gitspace attributes for access check
* Feat: [CDE-734]: add methods for fetching gitspace attributes for access check
2025-05-14 12:22:38 +00:00
Abhinav Singh
ad542f1e4e
feat: [CODE-3821]: add missing params for openapi for list commits ( #3769 )
...
* feat: [CODE-3821]: add missing params for openapi for list commits
* feat: [CODE-3821]: add missing params for openapi for list commits
2025-05-08 18:37:58 +00:00
Dhruv Dhruv
ce881ad8a1
fix: [CDE-771]: Adding resource_name to resource metadata. ( #3766 )
...
* fix: [CDE-771]: Adding resource_name to resource metadata.
2025-05-08 03:11:10 +00:00
Karan Saraswat
0d67a5358f
feat: [CODE-3530]: Return new file SHAs as part of commit API response ( #3753 )
...
* Apply suggestions from code review
* fixed formatting
* fixed fileRefs initialization
* Merge branch 'CODE-3530' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CODE-3530
* addressed review comments
* Apply suggestion from code review
* addressed review comments
* Apply suggestions from code review
* feat: [CODE-3530]: Return new file SHAs as part of commit API response
2025-05-05 13:40:55 +00:00
Vikyath Harekal
8d13a4beb3
feat: [CDE-753]: Fix backend handling of gitspace deletion requests ( #3745 )
...
* feat: [CDE-753]: Fix lint
* feat: [CDE-753]: Fix backend handling of gitspace deletion requests
2025-05-02 09:52:00 +00:00
Abhinav Singh
5aef4f53f8
feat: [CODE-3803]: add desc for swagger ( #3755 )
...
* Update types/repo.go
* feat: [CODE-3803]: add desc for swagger
* feat: [CODE-3803]: add desc for swagger
2025-05-01 20:17:14 +00:00
Arvind Choudhary
4f7dc32dcc
fix: [AH-1197]: Fixing table creation ( #3754 )
...
* [AH-1197]: Fixing table creation
2025-04-30 21:23:06 +00:00
Shivanand Sonnad
ebe634e5df
fix: [AH-1197]: fix failing OCI delete image and artifact ( #3741 )
...
* feat: [AH-1197]: update SQL migration queries for sqlite
* feat: [AH-1197]: fix failing tests
* feat: [AH-1197]: delete manifest on delete oci image
* feat: [AH-1197]: fix failing nodes because of foreign key constraint
* feat: [AH-1197]: remove unused functions
* feat: [AH-1197]: hard delete artifact and images for oci flow as well
* fix: [AH-1197]: fix failing OCI delete image and artifact
2025-04-30 20:31:14 +00:00
Darko Draskovic
988f6eff9b
feat: [CODE-3646]: Show if PR is bypassed ( #3725 )
...
* Add pullreq_merge_violations_bypassed to store list funcs
* Merge remote-tracking branch 'origin/main' into dd/pr-bypassed
* Rename pullreq_merge_bypassed to pullreq_merge_violations_bypassed
* Add false as state
* Merge remote-tracking branch 'origin/main' into dd/pr-bypassed
* Add merge- prefix
* Merge remote-tracking branch 'origin/main' into dd/pr-bypassed
* Add bypassed field to pullreq struct
* Show if PR is bypassed
2025-04-30 14:01:42 +00:00
Vikyath Harekal
8f7e024c9b
fix: [CDE-757]: Update instance state to error upon receiving error from resume operations ( #3751 )
...
* fix: [CDE-757]: Update instance state to error upon receiving error from resume operations
2025-04-30 09:45:56 +00:00
Tudor Macari
c62f822571
feat: [AH-1221]: Implement distributed locking for repo data ( #3731 )
...
* rebase
* feat: [AH-1221]: Implement distributed locking for repo data
2025-04-30 05:33:35 +00:00
Johannes Batzill
0d51e10332
chore: [CODE-3779]: add index for migrations table ( #3742 )
2025-04-28 21:01:06 +00:00
Ansuman Satapathy
8d0c8b2f1e
feat: [CDE-742]: add common scm auth functionality ( #3729 )
...
* feat: [CDE-742]: add common scm auth functionality
* feat: [CDE-742]: add common scm auth functionality
* feat: [CDE-742]: add common scm auth functionality
* feat: [CDE-742]: add common scm auth functionality
* feat: [CDE-742]: add common scm auth functionality
2025-04-24 12:15:36 +00:00
Darko Draskovic
a1969452b8
fix: [CODE-3460]: Update API path for pr update target branch ( #3662 )
...
* Revert to PUT for HTTP method
* Merge remote-tracking branch 'origin/main' into dd/target-branch-handler
* Update API path for pr update target branch
2025-04-22 11:36:26 +00:00
Ansuman Satapathy
febd3e3fc9
feat: [CDE-739]: added type github enterprise scm provider for cde ( #3708 )
...
* feat: [CDE-739]: added github enterprise scm provider for cde
* feat: [CDE-739]: added github enterprise scm provider for cde
2025-04-22 05:51:09 +00:00
Dhruv Dhruv
6c6dfdb0b9
feat: [CDE-718]: Updating sequence for cde-gateway related migration scripts. ( #3710 )
...
* feat: [CDE-718]: Updating sequence for cde-gateway related migration scripts.
2025-04-22 05:19:31 +00:00
Dhruv Dhruv
7c42a497e5
feat: [CDE-718]: Adding support for cde-gateways. ( #3696 )
...
* feat: [CDE-718]: Adding existence checks in cde-gateway related migration scripts.
* feat: [CDE-718]: Updating the report stats service.
* feat: [CDE-718]: Adding cde-gateway related tables and services.
2025-04-22 05:08:21 +00:00
Johannes Batzill
952a6d852f
feat: [CODE-3514]: make mediator public ( #3709 )
2025-04-22 01:33:04 +00:00
Johannes Batzill
dbb193e834
feat: [CODE-3514]: Track git writes per account ( #3671 )
2025-04-22 00:51:51 +00:00
Atefeh Mohseni Ejiyeh
bdfe97f77c
fix: [CODE-3545] Evict repo cache when deleting importing repositories ( #3699 )
2025-04-22 00:51:36 +00:00
Abhinav Singh
a4616af1fb
fix: [CODE-1944]: add failure ignored flag for check ( #3647 )
...
* fix: [CODE-1944]: add failure ignored flag for check
* fix: [CODE-1944]: add failure ignored flag for check
* fix: [CODE-1944]: add failure ignored flag for check
2025-04-21 21:01:58 +00:00
Atefeh Mohseni Ejiyeh
af75e56eb6
feat: [CODE-3546] update allowed states on LFS APIs for migrating repos ( #3707 )
2025-04-21 19:08:54 +00:00
Shivanand Sonnad
8b277e62d7
feat: [AH-1223]: Implement delete version for non oci package types ( #3684 )
...
* feat: [AH-1223]: fix failing go lint
* feat: [AH-1223]: fix failing go lint
* feat: [AH-1223]: file name change
* feat: [AH-1223]: file name change
* feat: [AH-1223]: fix go lint errors
* feat: [AH-1223]: add RPM package type in switch case
* feat: [AH-1223]: cascade delete download_stats and bandwidth_stats
* feat: [AH-1223]: resolve PR comments
* feat: [AH-1223]: resolve PR comments
* feat: [AH-1223]: fix failing go lint checks
* feat: [AH-1223]: add different switch case for delete based on package type
* feat: [AH-1223]: Implement delete version for non oci package types
2025-04-18 09:01:07 +00:00
Atefeh Mohseni Ejiyeh
df94dca3a7
feat: [CODE-3500] add Git LFS support to the repository setting ( #3672 )
2025-04-16 15:59:23 +00:00
Johannes Batzill
6b50985f20
fix: [CODE-3524]: Fix cache eviction for repo move operation, improve PR revert commit title ( #3686 )
2025-04-16 00:19:45 +00:00
Deepak Bhatt
691e692c21
Feat: [CDE-714]: add resource name as input parameter for infra provider validation ( #3683 )
...
* Feat: [CDE-714]: add resource name as input parameter for infra provider validation
2025-04-15 09:40:58 +00:00
Deepak Bhatt
9907c2e6bf
Feat: [CDE-580]: support jetbrains plugins installation and fix bug for provisioning existing infra ( #3676 )
...
* Feat: [CDE-580]: fix installation on multiple plugins
* Feat: [CDE-580]: fix nil pointer dereference and fix payload
* Feat: [CDE-580]: support jetbrains plugins installation
2025-04-15 04:47:17 +00:00
Atefeh Mohseni Ejiyeh
8945d977f9
fix: [CODE-3520] cast LFS object size to BIGINT for postgres compatibility ( #3681 )
2025-04-15 01:10:31 +00:00
Atefeh Mohseni Ejiyeh
af9eb2a94a
feat: [CODE-3520] update repo size calculator job to include Git LFS objects size ( #3680 )
2025-04-15 00:29:08 +00:00
Abhinav Singh
d5f1f27c34
feat: [CODE-2966]: add commit url to webhook ( #3659 )
...
* feat: [CODE-2966]: add commit url to commit ops
* Merge remote-tracking branch 'origin' into abhinav/CODE-2966
* feat: [CODE-2966]: add commit url to webhook
* feat: [CODE-2966]: add commit url to webhook
2025-04-14 21:23:12 +00:00
Ansuman Satapathy
e03b053205
feat: [CDE-651]: add gitlab and bitbucket on-prem ( #3674 )
...
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-603]: add SCM auth providers for bitbucket and gitlab
feat: [CDE-651]: add gitlab and bitbucket on-prem
* feat: [CDE-651]: add gitlab and bitbucket on-prem
2025-04-14 09:53:57 +00:00
Vikyath Harekal
46f6366728
feat: [CDE-722]: Sanitise config identifier ( #3670 )
...
* feat: [CDE-722]: Sanitize config identifier
* feat: [CDE-722]: Sanitize config identifier
2025-04-14 04:28:53 +00:00
Vikyath Harekal
31519b68d3
feat: [CDE-722]: Truncate gitspace config identifier to accommodate the unique identifier and -disk suffixes ( #3667 )
...
* feat: [CDE-722]: Truncate gitspace config name to accommodate the unique identifier and -disk suffixes
2025-04-11 12:59:41 +00:00
Darko Draskovic
da9a57f2c5
feat: [CODE-3461]: Add webhook trigger for PR target branch update ( #3661 )
...
* Add webhook trigger for PR target branch update
2025-04-10 14:58:53 +00:00
Marko Gaćeša
5e1b1b407e
feat: [CODE-3279]: revert PR API ( #3657 )
...
* pass the patch filename as a param to git
* revert doesn't return conflict
* revert PR API
2025-04-10 11:16:55 +00:00
Atefeh Mohseni Ejiyeh
414ecae70b
fix: [CODE-3501] condition check for unauthorized users in git and rest apis ( #3658 )
2025-04-09 22:02:58 +00:00
Sourabh Awashti
105afe37db
feat:[AH-1083]: Implementation of NPM registry ( #3608 )
...
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: merge conficts
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: fix checks
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: fix download_count
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: merge conflicst
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: bug fixes
* feat:[AH-1083]: review changes
* feat:[AH-1083]: review changes
* Merge branch 'main' into AH-1083
* feat:[AH-1083]: add get size and set size methods for metadata
* feat:[AH-1083]: remove remote implementation
* feat:[AH-1083]: Implementation of NPM registry
2025-04-09 21:19:49 +00:00
Darko Draskovic
8d7fc35548
fix: [CODE-3014]: Return 401 in case of unauthorized call without auth data ( #3634 )
...
* Remove IsAuthErr helper
* Merge remote-tracking branch 'origin/main' into dd/auth
* Fix registry tests
* Add IsAuthErr app api auth package
* Add hasAccess helper method
* Merge remote-tracking branch 'origin/main' into dd/auth
* Merge remote-tracking branch 'origin/main' into dd/auth
* Merge remote-tracking branch 'origin/main' into dd/auth
* Clean up controllers and handle anonymous in Check
* Return 401 in case of unauthorized call without auth data
2025-04-09 15:24:54 +00:00
Vikyath Harekal
0908924141
feat: [CDE-666]: Mark gitspace as stopped instead of deleted ( #3652 )
...
* feat: [CDE-666]: Remove debug logs
* feat: [CDE-666]: Remove debug logs
* feat: [CDE-666]: Debug
* feat: [CDE-666]: Debug
* feat: [CDE-666]: fix lint
* feat: [CDE-666]: Changes for suspend/resume flow
2025-04-09 05:32:10 +00:00
Vikyath Harekal
c0e68605f4
feat: [CDE-666]: Changes for suspend/resume flow ( #3644 )
...
* feat: [CDE-666]: fix lint
* feat: [CDE-666]: Changes for suspend/resume flow
2025-04-08 13:32:36 +00:00