-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: vocabulary support for namespace scoped decorators #983
Open
DibyamAgrawal
wants to merge
15
commits into
accordproject:main
Choose a base branch
from
DibyamAgrawal:dibyam/namespace-vocab
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
423e192
feat: vocab support for namespace terms
Dibyam-Agrawal 7689ff8
feat: handled edge cases
DibyamAgrawal 8dfff74
feat: updated test cases
DibyamAgrawal 9302955
feat: reused existing function
DibyamAgrawal bc96e3e
feat: moved code under feature flag
DibyamAgrawal b251c05
feat: updated change log
DibyamAgrawal 1cdb861
fix: updated version in change log
DibyamAgrawal cc22099
chore(aliasing): tests import aliasing (#977)
sanketshevkar 353aaa4
chore(actions): publish v3.20.3 to npm (#978)
github-actions[bot] 2374a10
chore(dcs): expose canMigrate and migrateTo methods from DecoratorMan…
sanketshevkar 4cec6e6
chore(actions): publish v3.20.4 to npm (#980)
github-actions[bot] 3187ad9
fix: updated test case
DibyamAgrawal 3dc8320
Merge branch 'main' of https://github.com/DibyamAgrawal/concerto into…
DibyamAgrawal c5e63ee
fix: updated change log
DibyamAgrawal 3cce506
fix: fixed test case
DibyamAgrawal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
1 change: 1 addition & 0 deletions
1
packages/concerto-core/test/data/decoratorcommands/extract-test-vocab-2.json
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
["locale: en\nnamespace: [email protected]\nterm: my Namespace\nDesc: my Namespace desc\ndeclarations:\n - mapName: Map Name\n properties:\n - KEY: some key\n desc: some key description\n - Person: Person Class\n desc: Person Class Description\n properties:\n - firstName: HI\n - bio: some\n cus: con\n"] |
1 change: 1 addition & 0 deletions
1
packages/concerto-core/test/data/decoratorcommands/extract-test-vocab-3.json
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
["locale: en\nnamespace: [email protected]\nterm: my Namespace\nDesc: my Namespace desc\ndeclarations: []\n"] |
55 changes: 55 additions & 0 deletions
55
packages/concerto-core/test/data/decoratorcommands/extract-test-with-namespace-term.cto
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@Term("my Namespace") | ||
@Term_Desc("my Namespace desc") | ||
@deco("testing namespace") | ||
namespace [email protected] | ||
@deco | ||
enum Dummy { | ||
@one | ||
o One | ||
} | ||
@scc | ||
scalar SSN extends String default="000-00-0000" | ||
|
||
@M1 | ||
participant participantName identified by participantKey { | ||
@M3 | ||
o String participantKey | ||
} | ||
|
||
@Dummy("term1",2) | ||
asset assetName identified by assetKey { | ||
o String assetKey | ||
} | ||
|
||
@Term("Map Name") | ||
map mapName { | ||
@Term("some key") | ||
@Term_desc("some key description") | ||
@deco(1) | ||
o String | ||
o String | ||
} | ||
|
||
@Term("Person Class") | ||
@Term_desc("Person Class Description") | ||
@Editable | ||
concept Person { | ||
@Term("HI") | ||
@Custom | ||
@Form("inputType", "text") | ||
@New | ||
o String firstName | ||
@term("custom") | ||
@term_desc("custom desc") | ||
@Form("inputType", "text") | ||
@New | ||
o String lastName | ||
@Term("some") | ||
@Term_cus("con") | ||
@Form("inputType", "textArea") | ||
@New | ||
o String bio | ||
@Form("inputType", "text") | ||
@New | ||
o String ssn | ||
} |
44 changes: 44 additions & 0 deletions
44
packages/concerto-core/test/data/decoratorcommands/extract-test-with-only-namespace-term.cto
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@Term("my Namespace") | ||
@Term_Desc("my Namespace desc") | ||
namespace [email protected] | ||
@deco | ||
enum Dummy { | ||
@one | ||
o One | ||
} | ||
@scc | ||
scalar SSN extends String default="000-00-0000" | ||
|
||
@M1 | ||
participant participantName identified by participantKey { | ||
@M3 | ||
o String participantKey | ||
} | ||
|
||
@Dummy("term1",2) | ||
asset assetName identified by assetKey { | ||
o String assetKey | ||
} | ||
|
||
map mapName { | ||
@deco(1) | ||
o String | ||
o String | ||
} | ||
|
||
@Editable | ||
concept Person { | ||
@Custom | ||
@Form("inputType", "text") | ||
@New | ||
o String firstName | ||
@Form("inputType", "text") | ||
@New | ||
o String lastName | ||
@Form("inputType", "textArea") | ||
@New | ||
o String bio | ||
@Form("inputType", "text") | ||
@New | ||
o String ssn | ||
} |
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
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 |
---|---|---|
|
@@ -37,7 +37,6 @@ export interface IRange extends IConcept { | |
|
||
export interface ITypeIdentifier extends IConcept { | ||
name: string; | ||
resolvedName?: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you are not working on the latest main branch of concerto. |
||
namespace?: string; | ||
} | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is happening here? Its a bit unclear what this method is accomplishing, can you add some description?
The part that is confusing here is that what's relation between decl object and parsing namespace vocabulary?