Skip to content

Update API definition and Test definition#10

Merged
lihaojie-CMCC merged 9 commits intomainfrom
lihaojie-CMCC-patch-1
Jun 20, 2025
Merged

Update API definition and Test definition#10
lihaojie-CMCC merged 9 commits intomainfrom
lihaojie-CMCC-patch-1

Conversation

@lihaojie-CMCC
Copy link
Contributor

@lihaojie-CMCC lihaojie-CMCC commented Jun 12, 2025

What type of PR is this?

Add one of the following kinds:

  • subproject management

What this PR does / why we need it:

Prepare the alpha release r1.1:

  • Update knowledge-base-manage.yaml
  • Update qa-assistant-manage.yaml
  • Update qa-assistant-service.yaml

Which issue(s) this PR fixes:

Special notes for reviewers:

@hdamker
Copy link
Contributor

hdamker commented Jun 12, 2025

@lihaojie-CMCC Please reserve the PR title "Release r1.1 with 0.1.0-alpha.1" for the actual release PR and not for the initial seed upload to the repository as in this PR. Only the release PR should set an actual version, the current "work in progress" should use "wip" as version. See https://github.com/camaraproject/ReleaseManagement/blob/main/documentation/API_Release_Guidelines.md

On first glance there are several points which need to be adapted for CAMARA in the current files in the PR ... let me know if you want to get some hints / a review of it.

Copy link
Contributor

@hdamker hdamker left a comment

Choose a reason for hiding this comment

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

Hi @lihaojie-CMCC,

I’ve made some comments on the current upload that need some extra work to meet the CAMARA API Design Guidelines. There are more, so please check out the links I’ve shared.

On top of that, I suggest deploying the linting_rules within the repository, as described in https://github.com/camaraproject/Commonalities/blob/main/documentation/API-linting-Implementation-Guideline.md. This will help ensure that the API definition complies with the API Design Guidelines.

type: string
description: Optional reference to the knowledge base source (e.g., "kb123_section5").
error:
$ref: '#/components/schemas/Error'
Copy link
Contributor

Choose a reason for hiding this comment

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

The error schema cant't be used within a 200 response (it has it's own HTTP code different from 200)

@@ -0,0 +1,272 @@
openapi: 3.0.4
Copy link
Contributor

Choose a reason for hiding this comment

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

we are currently using 3.0.3

version: 0.0.1

servers:
- url: '{apiRoot}/qa/v1'
Copy link
Contributor

Choose a reason for hiding this comment

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

must contain the API name
version part should be "vwip" for now, within release if would be v0.1alpha1

license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.0.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be wip for now
In release PR it will be 0.1.0-alpha.1 according to the PR title

Comment on lines +65 to +68
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/ServerError'
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +239 to +250
Error:
type: object
properties:
code:
type: integer
description: HTTP status code
message:
type: string
description: Error message
example:
code: 400
message: "Invalid document format. Supported formats: doc/pdf/txt/csv"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please follow the schema defined in CAMARA API Design guide and in https://github.com/camaraproject/Commonalities/blob/main/artifacts/CAMARA_common.yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@lihaojie-CMCC
Copy link
Contributor Author

lihaojie-CMCC commented Jun 13, 2025

Hi @hdamker, Thank you so much for your comments - we'll carefully review and improve these items.

@lihaojie-CMCC
Copy link
Contributor Author

Hi @hdamker, thanks for your valuable suggestions! We've confirmed several issues in our files and have now completed updates based on your comments.
If you have time, we'd appreciate your review of the changes.
We're actively working to finalize our content targeting an alpha release by June 21st to align with CAMARA Fall25 timelines.
In any case, your help is much appreciated!

@lihaojie-CMCC lihaojie-CMCC changed the title Release r1.1 with 0.1.0-alpha.1 Update API definition and Test definition Jun 20, 2025
@lihaojie-CMCC lihaojie-CMCC merged commit f4040e3 into main Jun 20, 2025
1 check passed
@hdamker
Copy link
Contributor

hdamker commented Jun 20, 2025

If you have time, we'd appreciate your review of the changes.

@lihaojie-CMCC great progress! But it's difficult to review for me, as you haven't replied to my comments, so I don't know which topics you are considering as solved and which you don't plan to change for some reasons. And as the PR is already merged, I don't know if it is still worth the effort now (unaddressed points will be show up again in the mandatory release review).

Two points which I have seen on first glance:

@lihaojie-CMCC
Copy link
Contributor Author

Hi @hdamker, thank you for your thorough review! We truly appreciate your help, and I apologize for having rushed the merge earlier.

To address your feedback:

  1. All previous comments have been addressed in our revisions. We will shortly provide a summary listing your feedback points and our corresponding updates.
  2. Regarding your two new points (server URLs and error definitions):

Additionally, could you kindly confirm if we've met the alpha release requirements? If any gaps remain, we'd appreciate guidance on further improvements.

Truly appreciate your expertise and support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants