Skip to content
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

fix:( jans-cli ) unable to create agama flow #2302

Closed
manojs1978 opened this issue Sep 5, 2022 · 1 comment · Fixed by #2394
Closed

fix:( jans-cli ) unable to create agama flow #2302

manojs1978 opened this issue Sep 5, 2022 · 1 comment · Fixed by #2394
Assignees
Labels
kind-bug Issue or PR is a bug in existing functionality priority-1 Issue or PR significantly impacts majority of users; Workaround is partial or overly painful

Comments

@manojs1978
Copy link
Contributor

Describe the bug
( jans-cli ) unalbe to create agama flow

To Reproduce
Steps to reproduce the behavior:
launch jan-cli interactive mode
go to configuration > agama flow > create new agama flow
fill mentdatory fields
See error

Expected behavior
should able to create agama flow

Screenshots
image

Desktop (please complete the following information):

  • OS: centos8
  • Browser [e.g. chrome, safari]
  • Version 8

Smartphone (please complete the following information):

Additional context
Add any other context about the problem here.

@manojs1978 manojs1978 added kind-bug Issue or PR is a bug in existing functionality priority-1 Issue or PR significantly impacts majority of users; Workaround is partial or overly painful labels Sep 5, 2022
@moabu moabu assigned devrimyatar and unassigned moabu Sep 5, 2022
@manojs1978 manojs1978 changed the title fix:( jans-cli ) unalbe to create agama flow fix:( jans-cli ) unable to create agama flow Sep 8, 2022
@devrimyatar
Copy link
Contributor

In commit e80a1d5 CLI won't ask non-required parameters. qname is mandatory, yaml file will be fixed by @pujavs. To test create a test flow file /tmp/test.flow with the following content:

Flow test
    Basepath "hello"

in = { name: "John" }
RRF "index.ftlh" in

Log "Done!"
Finish "john_doe"

And run CLI as folows:

Configuration: Agama Flow
-------------------------
1 Fetches all agama flow
2 Create a new agama flow
3 Gets an agama flow based on Qname
4 Create a new agama flow from source
5 Partially modify a Agama Flow
6 Deletes an agama flow based on Qname
7 Update agama flow from source file
b: back, q: quit, x: logout and quit

Selection: 2                                                                                                                

«Flow qualified name. Type: string»
qname: test                                                                                                                 

Populate optional fields? y                                                                                                 
Optional Fields:
1 revision
2 enabled
3 metadata
4 source
5 codeError

«c: continue, #: populate field. »
Selection: 4                                                                                                                

«Source code. Type: string»
source: _file /tmp/test.flow                                                                                                

«c: continue, #: populate field. »
Selection: c                                                                                                                
Obtained Data:

{
  "dn": null,
  "qname": "test",
  "revision": 0,
  "enabled": false,
  "metadata": null,
  "source": "Flow test\n    Basepath \"hello\"\n\nin = { name: \"John\" }\nRRF \"index.ftlh\" in\n\nLog \"Done!\"\nFinish \"john_doe\"",
  "codeError": null
}
b: back, n: no, y: yes, q: quit, x: logout and quit

Continue? y                                                                                                                 
Getting access token for scope https://jans.io/oauth/config/agama.write
Please wait while posting data ...

{
  "dn": "agFlowQname=test,ou=flows,ou=agama,o=jans",
  "qname": "test",
  "revision": -1,
  "enabled": false,
  "metadata": {
    "funcName": null,
    "inputs": null,
    "timeout": 0,
    "displayName": null,
    "author": null,
    "timestamp": 1663315491259,
    "description": null,
    "properties": null
  },
  "source": null,
  "codeError": null
}
b: back, q: quit, x: logout and quit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind-bug Issue or PR is a bug in existing functionality priority-1 Issue or PR significantly impacts majority of users; Workaround is partial or overly painful
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants