-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rework flow for more efficiency and consistency
* refactor: re-structure evaluation execution to be more consistent with validation * refactor: fix typo for profile.go file * feat: allows for customise output treatment * refactor: rename progress to be more intuitive * refactor: rework major flow process to be more memory efficient New Feature: * introduces output treatment for schema and procedure * user can configure output given by schema and procedure respectively * a bit of color for each output treatment Bug Fix: * bug caused by multiple definitions set within a single framework Reworked Feature: * framework output is now replaced by output teatment in each schema and procedure * 'dir' I/O is replaced by 'explorer' for more generic path exploration * validator and evaluator now handles how to write output, depending on the treatment Refactor: * change progress type from 'simple' and 'verbose' to 'iterative' and 'progressive' respectively * simplify Loader in `core` package to be more readable and easier to maintain * simplify Execute method in Pipeline to be more readable and easier to maintain * resource is now loaded only when needed to reduce memory consumption Concept: * error is divided into two state: execution error and business error * execution error is thrown if there's any anomaly outside business, such error when reading file * business error is thrown only if execution does not meet business specified by the user, such as schema execution result * fix: error on unit testing * docs: add log for better clarity on execution * docs: update documentation to reflect the latest changes * refactor: error model changed to be a structure for thread-safe execution
- Loading branch information
Showing
64 changed files
with
1,513 additions
and
1,908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,12 @@ And done. Based on the recipe, the output will be printed to the std out, or in | |
|
||
```zsh | ||
... | ||
{ | ||
"email": "[email protected]", | ||
"is_active": true, | ||
"membership": "premium" | ||
} | ||
--------------------------- | ||
example/resource/valor.json | ||
--------------------------- | ||
email: [email protected] | ||
is_active: true | ||
membership: premium | ||
... | ||
``` | ||
|
||
|
@@ -76,8 +77,8 @@ What Valor does is actually stated in the recipe file `valor.yaml`. Behind the s | |
2. execute framework pointed by field `framework_names` | ||
3. in the framework, run validation based on `schemas` | ||
4. if no error is found, load the required definition under `definitions` | ||
5. if no error is found, execute proceduresstated under `procedures` | ||
6. if no error is found, write the result based on `output_targets` | ||
5. if no error is found, execute procedures stated under `procedures` | ||
6. if no error is found, write the result based on `output` | ||
|
||
The explanation here is quite brief. For further explanation, try checkout the documentation [here](#documentation). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.