+
Skip to content

Conversation

SammyOina
Copy link
Contributor

@SammyOina SammyOina commented Aug 8, 2024

What type of PR is this?

This is a feature as it adds filename to datasets which are optionally verified if specified on the manifest. Filename is also persisted on dataset directory

What does this do?

  • New Features

    • Introduced a new field for dataset filenames, enhancing the context and utility of datasets.
    • Added a new error for filename mismatches to improve error handling during dataset validation.
  • Bug Fixes

    • Enhanced error messaging and handling for better user feedback and debugging.
  • Chores

    • Updated mock code generation tool version for consistency and maintenance.

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

No

Did you document any new/modified feature?

No

Notes

sequenceDiagram
    participant User
    participant ManagerService
    participant AgentService
    participant Dataset


    User->>ManagerService: Initiate computation run
    ManagerService->>AgentService: Prepare manifest containing datasets with Filename
    AgentService->>Dataset: Append new dataset with Filename to manifest
    User->>AgentService:Upload dataset
    AgentService->>Dataset:Verify filename as in manifest
    Dataset->>AgentService:Dataset stored with its filename
    AgentService-->>User: Datasets uploaded successfully
Loading

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Copy link
Contributor

@WashingtonKK WashingtonKK left a comment

Choose a reason for hiding this comment

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

I am still able to upload a file with a different file name successfuily, without any error.

➜  cocos git:(filename) ✗ ./build/cocos-cli data test/manual/data/iris.csv private.pem                                                 
2024/08/08 17:27:25 Uploading dataset CSV: test/manual/data/iris.csv
Uploading data...  100% [============================================================================================================>] 
2024/08/08 17:27:25 Successfully uploaded dataset

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit 31391a3 into ultravioletrs:main Aug 9, 2024
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.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载