-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/doc #1
Open
aGautrain
wants to merge
70
commits into
master
Choose a base branch
from
feature/doc
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
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
Feature/doc #1
Changes from 69 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
925cd3b
Release 0.1.0
ghoullier 306539b
chore(git) Update gitignore file structure
ghoullier 3465e25
first commit for contexts/workflows
60a9d96
Merge branch 'develop' of github.com:zetapush/zetapush-recipies into …
4505e97
Test recipe for contexts
1b41c3d
fix(api) Move public api macros with service reference to impl
ghoullier 8c4e0e7
feat(context) Expose workflow template
ghoullier 6313a62
feat(syntax-benefits/utils) Support new syntax benfits class and async
ghoullier 3e7055f
feat(syntax-benefits/config) Support new syntax benfits class and async
ghoullier 67d4da2
feat(syntax-benefits/group) Support new syntax benfits class and async
ghoullier 8c5b86b
feat(syntax-benefits/file) Support new syntax benefits class and async
ghoullier 4a4dcc5
feat(syntax-benefits/user) Support new syntax benefits class and async
ghoullier 58714b5
feat(syntax-benefits/role) Support new syntax benefits class and async
ghoullier bb19185
feat(syntax-benefits/user) Support new syntax benefits class and async
ghoullier 60078e6
feat(syntax-benefits/organization) Support new syntax benefits class …
ghoullier 497c62a
feat(syntax-benefits/conversation) Support new syntax benefits class …
ghoullier 7d08431
feat(syntax-benefits/whiteboard) Support new syntax benefits class an…
ghoullier 36285b4
feat(syntax-benefits/plugin/email) Support new syntax benefits class …
ghoullier bac836c
Finish syntax-benefits
ghoullier f6dd9f8
fix(user) Change update by service
ghoullier 6cc5bf5
feat(config) Update StringConfig type
ghoullier 4455c63
feat(user) Add update user test
ghoullier 8a6542e
chore(room) Rename public api conversation by room
ghoullier 936efbf
chore(version) Bump to 1.0.0
ghoullier 41cedfe
feat(room) Add data message type
ghoullier ebee921
feat(room) Update memebership behavior
ghoullier e4dfed9
feat(room/invitation) Add initial support for invitation room
ghoullier 87cf891
chore(git) Add *.zmar to ignore list
ghoullier f8fac8c
doc(copyright) Update copyright
ghoullier 7e51153
doc(utils/targets) Add minimal doc for targets storage
ghoullier 5ccae3d
feat(room/invitation) Update invitation model
ghoullier 63ed5aa
feat(room/invitation) Update events handlers
ghoullier 24b8e4a
doc(events) Update doc for high level api events
ghoullier 34fce73
fix(room) Change targets definition from string to string[]
ghoullier 9c690b8
fix(room) Update Room grants property
ghoullier 1fe8e7d
chore(git) Update gitignore file structure
ghoullier edc81ae
first commit for contexts/workflows
b94829f
Test recipe for contexts
286b6b0
fix(api) Move public api macros with service reference to impl
ghoullier 71a6861
feat(context) Expose workflow template
ghoullier 40ef2c1
feat(syntax-benefits/utils) Support new syntax benfits class and async
ghoullier 217aef5
feat(syntax-benefits/config) Support new syntax benfits class and async
ghoullier cae8765
feat(syntax-benefits/group) Support new syntax benfits class and async
ghoullier cd7ee9d
feat(syntax-benefits/file) Support new syntax benefits class and async
ghoullier 3c14d3d
feat(syntax-benefits/user) Support new syntax benefits class and async
ghoullier 16afa32
feat(syntax-benefits/role) Support new syntax benefits class and async
ghoullier edb7954
feat(syntax-benefits/user) Support new syntax benefits class and async
ghoullier 4878cf3
feat(syntax-benefits/organization) Support new syntax benefits class …
ghoullier dc2ad5d
feat(syntax-benefits/conversation) Support new syntax benefits class …
ghoullier 277ecdd
feat(syntax-benefits/whiteboard) Support new syntax benefits class an…
ghoullier 1cfdd58
feat(syntax-benefits/plugin/email) Support new syntax benefits class …
ghoullier cc45761
fix(user) Change update by service
ghoullier 66a982e
feat(config) Update StringConfig type
ghoullier ed86f3a
feat(user) Add update user test
ghoullier ba81313
chore(room) Rename public api conversation by room
ghoullier bce6571
chore(version) Bump to 1.0.0
ghoullier 3c5536d
feat(room) Add data message type
ghoullier 9737e2d
feat(room) Update memebership behavior
ghoullier 141fbe4
feat(room/invitation) Add initial support for invitation room
ghoullier 009a360
chore(git) Add *.zmar to ignore list
ghoullier a7e095c
doc(copyright) Update copyright
ghoullier 3566b3e
doc(utils/targets) Add minimal doc for targets storage
ghoullier a4ed64f
feat(room/invitation) Update invitation model
ghoullier 29c03db
feat(room/invitation) Update events handlers
ghoullier 60b7cfa
doc(events) Update doc for high level api events
ghoullier c08431d
fix(room) Change targets definition from string to string[]
ghoullier ad7713b
fix(room) Update Room grants property
ghoullier 4af6a1b
Merge remote-tracking branch 'origin/develop' into develop
ghoullier 9e94dbb
feat(doc)
aGautrain f1e3369
feat(doc)
aGautrain File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
src-gen/ | ||
target/ | ||
.settings/ | ||
|
||
*.zmapp | ||
*.zmar |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class ObjectConfigPaginatedList extends zpRecipeUtils::PaginatedList { | ||
ObjectConfig[] content; | ||
} | ||
|
||
class ObjectConfig extends zpRecipeUtils::Storable { | ||
/** Value */ map value; | ||
} |
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
11 changes: 4 additions & 7 deletions
11
com.zetapush.core.config/src/api/object/listObjectConfig.zms
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
macroscript listObjectConfig( | ||
/** Pagination query */ map page | ||
class zpRecipeUtils::Pagination page | ||
) { | ||
/** List stored objects */ | ||
var { result } = sudo zpRecipeUtils::GLOBAL_OWNER call zpRecipeUtils::core_utils__listStoredObject({ | ||
const list = sudo zpRecipeUtils::GLOBAL_OWNER await zpRecipeUtils::core_utils__listStoredObject({ | ||
table: TABLE_OBJECT_CONFIG, page, zpService: zpServiceGda | ||
}) hardFail; | ||
/** Destructure result properties */ | ||
var content = coll:map(result.content, entry -> zpRecipeUtils::map_entry_key_value(entry)); | ||
page = result.page; | ||
} broadcast { content, page } on channel __selfName | ||
}); | ||
} broadcast new ObjectConfigPaginatedList(list.page, list.content) on channel __selfName |
7 changes: 4 additions & 3 deletions
7
com.zetapush.core.config/src/api/object/removeObjectConfig.zms
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
macroscript removeObjectConfig( | ||
/** Config id */ @NotNull string id | ||
) { | ||
sudo zpRecipeUtils::GLOBAL_OWNER call zpRecipeUtils::core_utils__removeStoredObject({ | ||
/** Remove stored object */ | ||
sudo zpRecipeUtils::GLOBAL_OWNER await zpRecipeUtils::core_utils__removeStoredObject({ | ||
id, table: TABLE_OBJECT_CONFIG, zpService: zpServiceGda | ||
}) hardFail; | ||
} broadcast { id } on channel __selfName | ||
}); | ||
} broadcast { string id } on channel __selfName |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class StringConfigPaginatedList extends zpRecipeUtils::PaginatedList { | ||
StringConfig[] content; | ||
} | ||
|
||
class StringConfig extends zpRecipeUtils::Storable { | ||
/** Value */ string value; | ||
} |
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
11 changes: 4 additions & 7 deletions
11
com.zetapush.core.config/src/api/string/listStringConfig.zms
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
macroscript listStringConfig( | ||
/** Pagination query */ map page | ||
class zpRecipeUtils::Pagination page | ||
) { | ||
/** List stored objects */ | ||
var { result } = sudo zpRecipeUtils::GLOBAL_OWNER call zpRecipeUtils::core_utils__listStoredObject({ | ||
const list = sudo zpRecipeUtils::GLOBAL_OWNER await zpRecipeUtils::core_utils__listStoredObject({ | ||
table: TABLE_STRING_CONFIG, page, zpService: zpServiceGda | ||
}) hardFail; | ||
/** Destructure result properties */ | ||
var content = coll:map(result.content, entry -> zpRecipeUtils::map_entry_key_value(entry)); | ||
page = result.page; | ||
} broadcast { content, page } on channel __selfName | ||
}); | ||
} broadcast new StringConfigPaginatedList(list.page, list.content) on channel __selfName |
6 changes: 3 additions & 3 deletions
6
com.zetapush.core.config/src/api/string/removeStringConfig.zms
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
macroscript removeStringConfig( | ||
/** Config id */ @NotNull string id | ||
) { | ||
sudo zpRecipeUtils::GLOBAL_OWNER call zpRecipeUtils::core_utils__removeStoredObject({ | ||
sudo zpRecipeUtils::GLOBAL_OWNER await zpRecipeUtils::core_utils__removeStoredObject({ | ||
id, table: TABLE_STRING_CONFIG, zpService: zpServiceGda | ||
}) hardFail; | ||
} broadcast { id } on channel __selfName | ||
}); | ||
} broadcast { string id } on channel __selfName |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# generated by the ZMS compilation process | ||
target/ | ||
|
||
zms.user.properties |
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>com.zetapush.core.context.tests</name> | ||
<comment></comment> | ||
<projects> | ||
<project>com.zetapush.core.context</project> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
</natures> | ||
<filteredResources> | ||
<filter> | ||
<id>1490884040025</id> | ||
<name></name> | ||
<type>10</type> | ||
<matcher> | ||
<id>org.eclipse.ui.ide.multiFilter</id> | ||
<arguments>1.0-name-matches-true-false-target</arguments> | ||
</matcher> | ||
</filter> | ||
<filter> | ||
<id>1490884040026</id> | ||
<name></name> | ||
<type>6</type> | ||
<matcher> | ||
<id>org.eclipse.ui.ide.multiFilter</id> | ||
<arguments>1.0-name-matches-true-false-com.zetapush.core.context.tests-*.zmapp</arguments> | ||
</matcher> | ||
</filter> | ||
</filteredResources> | ||
</projectDescription> |
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,3 @@ | ||
### README for com.zetapush.core.context.tests | ||
|
||
Documentation in markdown format for a comprehensive description |
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,8 @@ | ||
sudo contexts::CONTEXT_TEMPLATES_VIRTUAL_USER call contexts::createContextTemplate({ | ||
contextTemplateId : TEMPLATE_CTX_VENTES, | ||
contextTemplateName : 'Ventes immobilières', | ||
workflowTemplateName : TEMPLATE_WF_VENTES, | ||
fields : [], | ||
groups : [contexts::CONTEXT_MANAGERS_GROUP_FQN], | ||
defaultWorkflowState : VENTES_STATE_CREATED | ||
}); |
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,21 @@ | ||
/** | ||
* Recipe com.zetapush.core.context.tests | ||
* Created on Thu Mar 30 16:27:20 CEST 2017 by pablo | ||
* Documentation in a source comment for a simple description | ||
* | ||
* Licence MIT | ||
* Copyright ZetaPush SAS © 2016-2017 | ||
*/ | ||
recipe com.zetapush.core.context.tests 1.0.0; | ||
|
||
import recipe com.zetapush.core.context 1.0.0 in contexts; | ||
|
||
/** Welcome message read from configuration */ | ||
const WELCOME_MESSAGE = @com.zetapush.core.context.tests.welcomeMessage; | ||
|
||
service code = new macro(contexts::API_DID); | ||
/** our code is run by this service */ | ||
service impl = new macro(contexts::IMPL_DID).forbiddenVerbs(__all) for 'src'; | ||
|
||
service workflow = new workflow(contexts::WORKFLOW_DID).forbiddenVerbs(__all); | ||
|
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.
Pas besoin de mettre 2 sauts de lignes à la fin de ton fichier