Skip to content

[PROD RELEASE] - Q2 #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 176 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
6163394
feat: apply for copilot opportunity
hentrymartin Apr 14, 2025
0372f83
deploy pr branch to develo[
hentrymartin Apr 14, 2025
06280ae
add migration
Apr 21, 2025
561906e
deploy to dev
Apr 21, 2025
5ac2a16
Fix migration script
Apr 22, 2025
99a5053
fix: permission issue to delete copilot invite
hentrymartin Apr 22, 2025
0b40100
fix: permission issue to delete copilot invite
hentrymartin Apr 22, 2025
fef6473
fix: removed circle ci config
hentrymartin Apr 22, 2025
0afeeac
Merge pull request #800 from topcoder-platform/pm-1077
hentrymartin Apr 22, 2025
5907e42
Make copilot opportunity details route public
Apr 23, 2025
4adf1e9
removed circle config
hentrymartin Apr 23, 2025
4b7990b
Merge pull request #799 from topcoder-platform/PM-589-add-migration
hentrymartin Apr 23, 2025
c608346
Merge branch 'develop' into PM-577
hentrymartin Apr 23, 2025
cffc8c0
updated swagger doc
hentrymartin Apr 23, 2025
bf83bcb
fix: removed validation
hentrymartin Apr 23, 2025
dc39219
fix: reference error
hentrymartin Apr 23, 2025
22cc474
fix: model
hentrymartin Apr 23, 2025
472acdf
fix: model
hentrymartin Apr 24, 2025
5a0b44f
fix: model
hentrymartin Apr 24, 2025
7c63711
fix: model
hentrymartin Apr 24, 2025
f0d083f
fix: model
hentrymartin Apr 24, 2025
aa60669
fix: model
hentrymartin Apr 24, 2025
47664c8
fix: model
hentrymartin Apr 24, 2025
1978a22
fix: validations
hentrymartin Apr 24, 2025
3cac325
removed unnecessary file
hentrymartin Apr 24, 2025
9ba39a3
enable AI Review buddy
kkartunov Apr 24, 2025
7ad57ec
fix: added notes column
hentrymartin Apr 28, 2025
8dfcdf0
fix: added notes from request
hentrymartin Apr 28, 2025
4a13b50
updated swagger file
hentrymartin Apr 28, 2025
350d155
debug logs
hentrymartin Apr 28, 2025
c922d0c
added notes to model
hentrymartin Apr 29, 2025
c3e8fca
sanitize notes
hentrymartin Apr 29, 2025
5329b81
sanitize notes
hentrymartin Apr 29, 2025
ca59b33
removed console log
hentrymartin Apr 29, 2025
dfa1ca3
Merge pull request #798 from topcoder-platform/PM-577
hentrymartin Apr 30, 2025
f0e40c1
PM-1068 refactor: allow PMs to view all copilot requests
Apr 30, 2025
a0e0d8b
fix: return existing application instead of throwing an error
hentrymartin May 2, 2025
7be3b14
fix: return existing application instead of throwing an error
hentrymartin May 2, 2025
1bd520d
removed circle branch config
hentrymartin May 2, 2025
7dcf79a
Merge pull request #802 from topcoder-platform/pm-577_1
hentrymartin May 2, 2025
93c1ca9
feat: list copilot applications
hentrymartin May 2, 2025
b6f6b8b
added circle config
hentrymartin May 2, 2025
45f8ff2
changed route method
hentrymartin May 3, 2025
21edae9
updated permission method
hentrymartin May 4, 2025
840f155
updated permission method
hentrymartin May 4, 2025
d093fe5
updated permission method
hentrymartin May 4, 2025
8411731
added opp id to the where clause
hentrymartin May 4, 2025
43dc20c
show all applications for pm
hentrymartin May 4, 2025
0a5d052
Merge pull request #801 from topcoder-platform/PM-1068
himaniraghav3 May 5, 2025
c42c1d4
fix: allow only copilots to apply for opportunity
hentrymartin May 5, 2025
7adb0cc
removed dev deployment circle config
hentrymartin May 5, 2025
51c50d8
Merge pull request #803 from topcoder-platform/pm-855
hentrymartin May 5, 2025
aeb7b48
feat: assign copilot opportunity
hentrymartin May 11, 2025
af846ab
deploy feature branch to dev
hentrymartin May 11, 2025
709601f
deploy feature branch to dev
hentrymartin May 11, 2025
4543e5e
fix: return object
hentrymartin May 12, 2025
9f7dc48
fix: return object
hentrymartin May 12, 2025
7f40cdb
fix: return object
hentrymartin May 12, 2025
8e2881d
updated swagger docs
hentrymartin May 12, 2025
f7d0990
fix: make notes optional
hentrymartin May 12, 2025
4753022
removed circle config
hentrymartin May 12, 2025
f852b5a
Merge pull request #806 from topcoder-platform/pm-578_1
hentrymartin May 12, 2025
2ee4f9b
fix: lint
hentrymartin May 13, 2025
2fd1652
fix: check if the user is already a copilot
hentrymartin May 13, 2025
d5296d3
fix: allow project managers to view applications of opportunity not b…
hentrymartin May 13, 2025
4350c1f
fix: allow project managers to view applications of opportunity not b…
hentrymartin May 13, 2025
3a64f1d
fix: allow project managers to view applications of opportunity not b…
hentrymartin May 13, 2025
cfbbd56
removed not needed circle config
hentrymartin May 14, 2025
c36ca64
Merge pull request #807 from topcoder-platform/pm-1067_1
hentrymartin May 14, 2025
f181533
Merge branch 'develop' into pm-1168
hentrymartin May 14, 2025
0f4db68
Merge pull request #805 from topcoder-platform/pm-1168
kkartunov May 15, 2025
c7d8d37
PM-1207 Make copilot oppportunity details api public
May 19, 2025
d2aa3e9
Fix accidentally removed code
May 19, 2025
69eb97a
fix: invite user when assigning as copilot
hentrymartin May 19, 2025
675858b
fix: invite user when assigning as copilot
hentrymartin May 19, 2025
613defe
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
e3303fe
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
d83097b
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
68fdf7b
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
7383c70
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
aaea12c
fix: invite user when assigning as copilot
hentrymartin May 20, 2025
35d27e0
fix: removed circle config
hentrymartin May 21, 2025
1102fdc
fix: added migration to set application id in project member invite
hentrymartin May 21, 2025
fe085cf
fix: added migration to set application id in project member invite
hentrymartin May 21, 2025
42485c5
fix: complete the copilot application on accepting invite
hentrymartin May 21, 2025
944692c
Merge pull request #808 from topcoder-platform/PM-1207
kkartunov May 22, 2025
2d20d16
fix: complete the copilot application on accepting invite
hentrymartin May 22, 2025
3ec8ebd
fix: complete the copilot application on accepting invite
hentrymartin May 22, 2025
364e74b
fix: complete the copilot application on accepting invite
hentrymartin May 22, 2025
d691100
fix: complete the copilot application on accepting invite
hentrymartin May 22, 2025
3a4fc53
fix: added new application status
hentrymartin May 22, 2025
6224d47
Merge pull request #809 from topcoder-platform/pm-1168_1
hentrymartin May 22, 2025
d6bd47e
fix: QA feedbacks for assigning copilots
hentrymartin May 23, 2025
07973aa
fix: move application to pending when all invites are rejected
hentrymartin May 23, 2025
c43ace7
fix: move application to pending when all invites are rejected
hentrymartin May 23, 2025
9ba2c67
fix: move application to pending when all invites are rejected
hentrymartin May 23, 2025
4b1e2b3
fix: move application to pending when all invites are rejected
hentrymartin May 25, 2025
4defcf7
fix: move application to pending when all invites are rejected
hentrymartin May 25, 2025
cc46a74
fix: move application to pending when all invites are rejected
hentrymartin May 25, 2025
3bf61b2
fix: move application to pending when all invites are rejected
hentrymartin May 25, 2025
e19a9d1
fix: move application to pending when all invites are rejected
hentrymartin May 25, 2025
d4d3790
debug
hentrymartin May 26, 2025
3a8a1fc
debug
hentrymartin May 26, 2025
ea2ac33
debug
hentrymartin May 26, 2025
5151cfa
Merge pull request #810 from topcoder-platform/pm-1168_2
kkartunov May 27, 2025
d31503e
fix: don't show applied on for completed project
hentrymartin May 27, 2025
8507660
fix: don't show applied on for completed project
hentrymartin May 27, 2025
09249e6
fix: don't show applied on for completed project
hentrymartin May 27, 2025
d10aa02
fix: don't show applied on for completed project
hentrymartin May 27, 2025
4f2ea1a
fix: don't show applied on for completed project
hentrymartin May 27, 2025
5caaf0d
fix: don't show applied on for completed project
hentrymartin May 27, 2025
cf0236d
removed circle config
hentrymartin May 27, 2025
d9d9cd4
Merge pull request #811 from topcoder-platform/pm-1168_2
hentrymartin May 27, 2025
aa20437
DB schema config parameter
jmgasper May 27, 2025
da294ad
Merge pull request #812 from topcoder-platform/db_schema
jmgasper May 27, 2025
bbb0d6b
Add schema to umzug config as well
jmgasper May 27, 2025
dea4e18
Back out circle ci test
jmgasper May 27, 2025
759a4db
Merge pull request #813 from topcoder-platform/db_schema
jmgasper May 27, 2025
160c4d8
fix: send source as part of project member invite
hentrymartin May 28, 2025
db388bc
fix: send source as part of project member invite
hentrymartin May 28, 2025
ded8a7c
fix: send source as part of project member invite
hentrymartin May 28, 2025
7c29993
fix: send source as part of project member invite
hentrymartin May 28, 2025
cc92278
fix: update copilot request based on the source of invite
hentrymartin May 30, 2025
dc019e3
fix: send source to accept or decline invite API
hentrymartin Jun 2, 2025
79fdf6f
feat: get roles by role name
hentrymartin Jun 2, 2025
4b8c9f7
deploy feature branch
hentrymartin Jun 2, 2025
0c54ecf
deploy feature branch
hentrymartin Jun 2, 2025
223b7bd
deploy feature branch
hentrymartin Jun 2, 2025
82dd797
deploy feature branch
hentrymartin Jun 2, 2025
9793dcc
fix: get role by role name
hentrymartin Jun 2, 2025
5b29f65
modified timeout
hentrymartin Jun 2, 2025
388e9f5
Merge pull request #814 from topcoder-platform/pm-1169
kkartunov Jun 3, 2025
a282f0b
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
ff6f62a
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
0a3317a
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
aa5cc62
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
f7579a0
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
2065478
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
724d028
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
21b079b
fix: cancel all copilot requests for a project when manually copilot …
hentrymartin Jun 3, 2025
77b0fb0
Merge pull request #816 from topcoder-platform/pm-1169_1
kkartunov Jun 4, 2025
a29f1c9
rebased from develop branch
hentrymartin Jun 4, 2025
deaed3a
rebased from develop branch
hentrymartin Jun 4, 2025
d4ed7a9
rebased from develop branch
hentrymartin Jun 4, 2025
91f23ab
rebased from develop branch
hentrymartin Jun 4, 2025
b7f5bf5
fix: sync issue between db and es
hentrymartin Jun 4, 2025
4c45e27
fix: sync issue
hentrymartin Jun 4, 2025
595e046
Merge pull request #817 from topcoder-platform/pm-1169_2
hentrymartin Jun 5, 2025
fb9b8a9
Merge branch 'develop' into pm-1173
hentrymartin Jun 5, 2025
31a2b66
fix: sync issue
hentrymartin Jun 5, 2025
ae5952d
fix: added external action email kaufka type
hentrymartin Jun 5, 2025
c16d06e
fix: added external action email kaufka type
hentrymartin Jun 5, 2025
190c04c
fix: added external action email kaufka type
hentrymartin Jun 8, 2025
4c98fe7
fix: added external action email kaufka type
hentrymartin Jun 10, 2025
0ad22c3
fix: added external action email kaufka type
hentrymartin Jun 10, 2025
cc5a28d
fix: send emails to PMs and creator
hentrymartin Jun 10, 2025
b52b16e
fix: send emails to PMs and creator
hentrymartin Jun 10, 2025
5fbd197
fix: send emails to PMs and creator
hentrymartin Jun 10, 2025
49356d6
fix: review comments
hentrymartin Jun 10, 2025
e34f785
fix: review comments
hentrymartin Jun 10, 2025
6f4cb68
Merge pull request #815 from topcoder-platform/pm-1173
hentrymartin Jun 10, 2025
024b70f
fix: added work manager url
hentrymartin Jun 16, 2025
1a5016f
fix: retain query param
hentrymartin Jun 16, 2025
24d2fba
fix: removed validation for source as default is work manager
hentrymartin Jun 16, 2025
a26bd8f
fix: removed validation for source as default is work manager
hentrymartin Jun 16, 2025
37bd5ed
Merge pull request #818 from topcoder-platform/pm-1173_1
hentrymartin Jun 16, 2025
339c8ab
debug apply copilot
hentrymartin Jun 16, 2025
9be8c5f
debug apply copilot
hentrymartin Jun 16, 2025
d95af0d
fix: use correct field
hentrymartin Jun 16, 2025
126ea0b
fix: use correct field
hentrymartin Jun 16, 2025
3875c3e
fix: lowercase null exception
hentrymartin Jun 16, 2025
92ee79e
removed debug logs
hentrymartin Jun 16, 2025
70e8e40
removed circle ci configs
hentrymartin Jun 16, 2025
7bae3fd
Merge pull request #820 from topcoder-platform/pm-1175_2
hentrymartin Jun 16, 2025
12fab3a
fix: send project member invite email via external email event
hentrymartin Jun 16, 2025
71f598c
Merge pull request #821 from topcoder-platform/pm-1356
kkartunov Jun 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ workflows:
context : org-global
filters:
branches:
only: ['develop', 'migration-setup']
only: ['develop', 'migration-setup', 'pm-1356']
- deployProd:
context : org-global
filters:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/code_reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: AI PR Reviewer

on:
pull_request:
types:
- opened
- synchronize
permissions:
pull-requests: write
jobs:
tc-ai-pr-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: TC AI PR Reviewer
uses: topcoder-platform/tc-ai-pr-reviewer@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
LAB45_API_KEY: ${{ secrets.LAB45_API_KEY }}
exclude: '**/*.json, **/*.md, **/*.jpg, **/*.png, **/*.jpeg, **/*.bmp, **/*.webp' # Optional: exclude patterns separated by commas
3 changes: 2 additions & 1 deletion config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"dbConfig": {
"masterUrl": "DB_MASTER_URL",
"maxPoolSize": "DB_MAX_POOL_SIZE",
"minPoolSize": "DB_MIN_POOL_SIZE"
"minPoolSize": "DB_MIN_POOL_SIZE",
"schema": "DB_SCHEMA_NAME"
},
"kafkaConfig": {
"groupId": "KAFKA_GROUP_ID",
Expand Down
1 change: 1 addition & 0 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"inviteEmailSubject": "You are invited to Topcoder",
"inviteEmailSectionTitle": "Project Invitation",
"workManagerUrl": "https://challenges.topcoder-dev.com",
"copilotPortalUrl": "https://copilots.topcoder-dev.com",
"accountsAppUrl": "https://accounts.topcoder-dev.com",
"MAX_REVISION_NUMBER": 100,
"UNIQUE_GMAIL_VALIDATION": false,
Expand Down
1 change: 1 addition & 0 deletions config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"pubsubExchangeName": "dev.projects",
"attachmentsS3Bucket": "topcoder-dev-media",
"workManagerUrl": "https://challenges.topcoder-dev.com",
"copilotPortalUrl": "https://copilots.topcoder-dev.com",
"fileServiceEndpoint": "https://api.topcoder-dev.com/v5/files",
"memberServiceEndpoint": "https://api.topcoder-dev.com/v5/members",
"identityServiceEndpoint": "https://api.topcoder-dev.com/v3/",
Expand Down
1 change: 1 addition & 0 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"authDomain": "topcoder.com",
"workManagerUrl": "https://challenges.topcoder.com",
"copilotPortalUrl": "https://copilots.topcoder.com",
"sfdcBillingAccountNameField": "Billing_Account_name__c",
"sfdcBillingAccountMarkupField": "Mark_up__c",
"sfdcBillingAccountActiveField": "Active__c"
Expand Down
203 changes: 199 additions & 4 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ info:
You can also set a custom page size up to 100 with the `perPage` parameter.

Pagination response data is included in http headers. By Default, the response header contains links with `next`, `last`, `first`, `prev` resource links.
host: "localhost:3000"
host: "api.topcoder-dev.com"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The host has been changed from localhost:3000 to api.topcoder-dev.com. Ensure that this change is intentional and that the new host is correctly configured for production use.

basePath: /v5
schemes:
- http
- https

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scheme has been changed from http to https. Verify that the server supports HTTPS and that all necessary certificates are in place for secure communication.

produces:
- application/json
consumes:
Expand Down Expand Up @@ -411,7 +411,7 @@ paths:
"/projects/copilots/opportunities":
get:
tags:
- projects copilot opportunities
- projects copilot opportunity

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tag name has been changed from 'projects copilot opportunities' to 'projects copilot opportunity'. Ensure that this change is intentional and consistent with the rest of the documentation and codebase, as it may affect how this endpoint is categorized or accessed.

operationId: getAllCopilotOpportunities
security:
- Bearer: []
Expand Down Expand Up @@ -444,7 +444,7 @@ paths:
description: "Internal Server Error"
schema:
$ref: "#/definitions/ErrorModel"
"/projects/copilots/opportunities/{copilotOpportunityId}":
"/projects/copilots/opportunity/{copilotOpportunityId}":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The endpoint path has been changed from /projects/copilots/opportunities/{copilotOpportunityId} to /projects/copilots/opportunity/{copilotOpportunityId}. Ensure that this change is intentional and that it aligns with the rest of the API structure and documentation. Verify that any related code or documentation has been updated accordingly to prevent any potential issues with API calls.

get:
tags:
- projects copilot opportunity
Expand All @@ -471,6 +471,126 @@ paths:
description: "Internal Server Error"
schema:
$ref: "#/definitions/ErrorModel"
"/projects/copilots/opportunity/{copilotOpportunityId}/apply":
post:
tags:
- projects copilot opportunity
operationId: applyCopilotOpportunity
security:
- Bearer: []
description: "Retrieve a specific copilot opportunity."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for the POST method at /projects/copilots/opportunity/{copilotOpportunityId}/apply seems misleading. It states "Retrieve a specific copilot opportunity," which implies a GET operation rather than an application submission. Consider revising the description to accurately reflect the operation being performed, such as "Apply for a specific copilot opportunity."

parameters:
- $ref: "#/parameters/copilotOpportunityIdParam"
- in: body
name: body
schema:
$ref: "#/definitions/ApplyCopilotOpportunity"
responses:
"200":
description: "The copilot opportunity application"
schema:
$ref: "#/definitions/CopilotOpportunityApplication"
"401":
description: "Unauthorized"
schema:
$ref: "#/definitions/ErrorModel"
"403":
description: "Forbidden - User does not have permission"
schema:
$ref: "#/definitions/ErrorModel"
"500":
description: "Internal Server Error"
schema:
$ref: "#/definitions/ErrorModel"
"/projects/copilots/opportunity/{copilotOpportunityId}/applications":
get:
tags:
- projects copilot opportunity applications
operationId: listCopilotOpportunity
security:
- Bearer: []
description: "Retrieve the list copilot opportunity applications."
parameters:
- $ref: "#/parameters/copilotOpportunityIdParam"
- name: sort
required: false
description: >
sort projects by createdAt, updatedAt. Default
is createdAt asc
in: query
type: string
responses:
"200":
description: A list of projects

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for the response code "200" in the GET method at /projects/copilots/opportunity/{copilotOpportunityId}/applications states "A list of projects," which may not accurately describe the response. It might be more appropriate to specify "A list of copilot opportunity applications" to match the endpoint functionality.

schema:
type: array
items:
$ref: "#/definitions/CopilotOpportunityApplication"
headers:
X-Next-Page:
type: integer
description: The index of the next page
X-Page:
type: integer
description: The index of the current page (starting at 1)
X-Per-Page:
type: integer
description: The number of items to list per page
X-Prev-Page:
type: integer
description: The index of the previous page
X-Total:
type: integer
description: The total number of items
X-Total-Pages:
type: integer
description: The total number of pages
Link:
type: string
description: Pagination link header.
"401":
description: "Unauthorized"
schema:
$ref: "#/definitions/ErrorModel"
"403":
description: "Forbidden - User does not have permission"
schema:
$ref: "#/definitions/ErrorModel"
"500":
description: "Internal Server Error"
schema:
$ref: "#/definitions/ErrorModel"
"/projects/copilots/opportunity/{copilotOpportunityId}/assign":
post:
tags:
- assign project copilot opportunity
operationId: assignCopilotOpportunity
security:
- Bearer: []
description: "Assign a copilot opportunity with copilot."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for the POST method at /projects/copilots/opportunity/{copilotOpportunityId}/assign could be improved for clarity. It currently states "Assign a copilot opportunity with copilot," which might be ambiguous. Consider rephrasing to "Assign a copilot to a specific opportunity" for better understanding.

parameters:
- $ref: "#/parameters/copilotOpportunityIdParam"
- in: body
name: body
schema:
$ref: "#/definitions/AssignCopilotOpportunity"
responses:
"200":
description: "The response after assigning an copilot opportunity"
schema:
$ref: "#/definitions/CopilotOpportunityAssignResponse"
"401":
description: "Unauthorized"
schema:
$ref: "#/definitions/ErrorModel"
"403":
description: "Forbidden - User does not have permission"
schema:
$ref: "#/definitions/ErrorModel"
"500":
description: "Internal Server Error"
schema:
$ref: "#/definitions/ErrorModel"
"/projects/{projectId}/attachments":
get:
tags:
Expand Down Expand Up @@ -5448,6 +5568,13 @@ parameters:
required: true
type: integer
format: int64
copilotOpportunityIdParam:
name: copilotOpportunityId
in: path
description: copilot opportunity identifier
required: true
type: integer
format: int64
phaseIdParam:
name: phaseId
in: path
Expand Down Expand Up @@ -5975,6 +6102,60 @@ definitions:
format: int64
description: READ-ONLY. User that last updated this task
readOnly: true
CopilotOpportunityApplication:
type: object
properties:
id:
description: unique identifier
type: integer
format: int64
notes:
description: notes regarding the application
type: string
status:
description: status of the application
type: string
enum:
- pending
- accepted
example: pending
opportunityId:
description: copilot request id
type: integer
createdAt:
type: string
description: Datetime (GMT) when task was created

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for createdAt mentions 'task' instead of 'application'. Consider updating the description to accurately reflect that it pertains to the application.

readOnly: true
createdBy:
type: integer
format: int64
description: READ-ONLY. User who created this task
readOnly: true
updatedAt:
type: string
description: READ-ONLY. Datetime (GMT) when task was updated

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for updatedAt mentions 'task' instead of 'application'. Consider updating the description to accurately reflect that it pertains to the application.

readOnly: true
updatedBy:
type: integer
format: int64
description: READ-ONLY. User that last updated this task
readOnly: true
deletedAt:
type: string
description: READ-ONLY. Datetime (GMT) when task was deleted

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for deletedAt mentions 'task' instead of 'application'. Consider updating the description to accurately reflect that it pertains to the application.

readOnly: true
deletedBy:
type: integer
format: int64
description: READ-ONLY. User that deleted this task
readOnly: true
CopilotOpportunityAssignResponse:
type: object
properties:
id:
description: unique identifier
type: integer
format: int64
Project:
type: object
properties:
Expand Down Expand Up @@ -6184,6 +6365,20 @@ definitions:
- customer
- manager
- copilot
ApplyCopilotOpportunity:
title: Apply Copilot Opportunity
type: object
properties:
notes:
type: string
description: notes about applying copilot opportunity

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider providing more detailed information in the description to clarify what kind of notes are expected or any constraints on the notes field.

AssignCopilotOpportunity:
title: Assign Copilot Opportunity
type: object
properties:
applicationId:
type: string
description: The ID of the application to be accepted for the copilot opportunity.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the applicationId field has any necessary validation or constraints defined, such as format or length, if applicable.

NewProjectAttachment:
title: Project attachment request
type: object
Expand Down
Loading