fssa-batch3 / fssa-batch3/sec_b_kishore.sugumar__corejava_project_2

Update Asset

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature: Update Asset
> The update asset feature updates the asset that already exists in tha asset table of the database.
#### Pre-requisites:
* asset table
* asset entity
* asset model
* asset DAO (update)
* asset service
* product asset table
#### Validations:
* Form Validation
* old url( null, empty)
* new url( null, empty, pattern )
* product id ( null, empty)
* Business Validation
* product does exists or not
* old asset does exists or not
#### Messages:
* Old Asset value cannot be null or empty
* New Asset value cannot be null or empty
* Product id cannot be null or empty
* Invalid url pattern of new asset
* Product does not exists
* Old asset does not exists
* Old asset and new asset cannot be same
#### Flow:
> Invalid occur When a asset does not meet the criteria and old asset and new asset are same.
```mermaid
graph TD;
A(arugument passes to AssetsService) --> B(Form Validation)
B --Valid--> C(Business Validation)
B --Invalid--> E(Throw Validation Exception)
C --valid--> D(Update the new value in asset)
C --Invalid--> F(Throw Validation Exception)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.