Skip to content

Commit

Permalink
feat(core):added extract decorator method (#754)
Browse files Browse the repository at this point in the history
* feat(core):added extract decorator method

Signed-off-by: Muskan Bararia <[email protected]>

* feat(core):added extract decorator method

Signed-off-by: Muskan Bararia <[email protected]>

* fix: Added bugfix for no decorators

Signed-off-by: Muskan Bararia <[email protected]>

* fix: Removed mutability and typos fixed

Signed-off-by: Muskan Bararia <[email protected]>

* fix: typo fix for jsdoc

Signed-off-by: Muskan Bararia <[email protected]>

* fix: call Model functions for getting version

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Extract decorators and vocab via visitor pattern

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Extract decorators and vocab via visitor pattern

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Extract decorators and vocab via visitor pattern

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Extract decorators and vocab for all types including maps and add relevant tests

Signed-off-by: Muskan Bararia <[email protected]>

* fix:minor linting fixes

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Added new testcase and created a Util for decorators

Signed-off-by: Muskan Bararia <[email protected]>

* feat: Added new testcase and created a Util for decorators

Signed-off-by: Muskan Bararia <[email protected]>

* fix: broke down functions so they are more readable

Signed-off-by: Muskan Bararia <[email protected]>

* fix: added relevant types

Signed-off-by: Muskan Bararia <[email protected]>

* fix: removed two loops in parsing and better breakdown

Signed-off-by: Muskan Bararia <[email protected]>

* fix: better breakdown  by adding transform functions

Signed-off-by: Muskan Bararia <[email protected]>

* fix: better breakdown  by adding constructor functions

Signed-off-by: Muskan Bararia <[email protected]>

* fix: created decorator extractor class

Signed-off-by: Muskan Bararia <[email protected]>

* fix: created decorator extractor class

Signed-off-by: Muskan Bararia <[email protected]>

* chore: added linting fix

Signed-off-by: Muskan Bararia <[email protected]>

* fix: added proper check to test for map type

Signed-off-by: Muskan Bararia <[email protected]>

---------

Signed-off-by: Muskan Bararia <[email protected]>
Co-authored-by: Muskan Bararia <[email protected]>
  • Loading branch information
muskanbararia and Muskan Bararia authored Nov 14, 2023
1 parent 53abb6d commit b356260
Show file tree
Hide file tree
Showing 11 changed files with 841 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/concerto-core/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ class Concerto {
+ string getNamespace(obj)
}
+ object setCurrentTime()
class DecoratorExtractor {
+ void constructor(boolean,string,string,Object)
}
class DecoratorManager {
+ ModelManager validate(decoratorCommandSet,ModelFile[]) throws Error
+ ModelManager decorateModels(ModelManager,decoratorCommandSet,object?,boolean?,boolean?,boolean?)
+ ExtractDecoratorsResult extractDecorators(ModelManager,object,boolean,string)
+ void validateCommand(ModelManager,command)
+ Boolean falsyOrEqual(string||,string[])
+ void applyDecorator(decorated,string,newDecorator)
Expand Down
3 changes: 3 additions & 0 deletions packages/concerto-core/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
# Note that the latest public API is documented using JSDocs and is available in api.txt.
#

Version 3.13.3 {b286dfdeeb654d25be7c5f9cc6305e38} 2023-11-07
- Added DCS and vocabulary extraction support for decoratorManager

Version 3.13.2 {dccc690753912cf87e7ceec56d949058} 2023-10-18
- Add getNamespace method to key type and value type of maps

Expand Down
Loading

0 comments on commit b356260

Please sign in to comment.