Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 31 18:04
    Pavel910 commented #778
  • Mar 31 17:27
    doitadrian commented #778
  • Mar 31 17:25
    doitadrian labeled #778
  • Mar 31 17:25
    doitadrian opened #778
  • Mar 31 17:14

    Pavel910 on headless-latest

    fix: add missing prop type defi… (compare)

  • Mar 31 17:14

    Pavel910 on headless-latest

    wip: site SSR setup using app t… (compare)

  • Mar 31 16:28

    doitadrian on master

    fix: improve descriptions for "… (compare)

  • Mar 31 16:28
    doitadrian closed #777
  • Mar 31 16:28
    doitadrian closed #770
  • Mar 31 16:25
    drexlar5 synchronize #777
  • Mar 31 12:41

    Pavel910 on headless-latest

    feat: export "plugins" instance fix: forward all arguments to c… (compare)

  • Mar 31 05:00
    Fsalker synchronize #762
  • Mar 31 05:00

    Fsalker on issue-695-tokens

    fix: render elem correctly & re… chore: remove unused 'formIsLoa… (compare)

  • Mar 30 18:56

    Pavel910 on headless-latest

    refactor: turn CLI commands int… (compare)

  • Mar 30 14:41

    Pavel910 on headless-latest

    wip: add app-template-site pack… (compare)

  • Mar 30 14:40

    Pavel910 on headless-latest

    feat: add support for "openBrow… feat: add app-template-admin-fu… chore: add script to build app … and 1 more (compare)

  • Mar 30 10:56
    Fsalker edited #762
  • Mar 30 00:59
    ahmad-reza619 review_requested #775
  • Mar 29 20:22
    Fsalker synchronize #762
  • Mar 29 20:22

    Fsalker on issue-695-tokens

    refactor: pass setValue to upda… refactor: remove the silly 'AAA… (compare)

Pavel Denisjuk
@Pavel910
Hi @jfgrissom and welcome! :)
Jason F. Grissom
@jfgrissom
Regarding credentials for running webiny deploy-api. I have no problem setting things up the way the documentation recommends but I'm curious about enterprise usage for this. Where I work we delegate getting temporary keys with credential_process value setup in ~/.aws/config (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html).
I see that this doesn't work when authorizing then using something like export AWS_PROFILE=PreviouslyAuthedProfile && webiny deploy-api.
Pavel Denisjuk
@Pavel910
You can set the AWS_PROFILE in <projectRoot>/.env.json
Jason F. Grissom
@jfgrissom
To me this seems like it might warrant a feature request but I'm not sure. As this is currently, I would not be able to run Webiny at Intuit (were I work) because we don't create IAM users we use temporary credentials for everything.
I have set the .env.json to the correct profile (per the documentation). But still get Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
Pavel Denisjuk
@Pavel910
maybe we should actually leave that to the user, just as you said, using export or any other way the user prefers, but not via config files.
we can easily do that, especially for our next release, which is coming soon, we're doing lots of changes so feel free to open as many issues in our GH as you need.
Jason F. Grissom
@jfgrissom
This ONLY fails when I use credential_process value setup in ~/.aws/config. But works as documented when I setup a static iam user.
Pavel Denisjuk
@Pavel910
we'll be glad to include those improvements in the next release.
Jason F. Grissom
@jfgrissom
Hm...
Pavel Denisjuk
@Pavel910
it would be great if you could describe the process you have in a GH issue :)
Jason F. Grissom
@jfgrissom
Perhaps I should not have put the export comment in there. Assume I'm ONLY using .env.json.
I'll create one. :thumbsup:
Pavel Denisjuk
@Pavel910
:heart:
Jason F. Grissom
@jfgrissom
I see you went directly to the export based on the previous issue you created (webiny/webiny-js#742).
Pavel Denisjuk
@Pavel910

@jfgrissom would it make it easier for you if you didn't have to define anything in .env.json ?

Because, even today, you can simply go in .env.json and remove all those AWS variables, and set them up before running webiny - it would still all work.

.env.json is simply loaded and assigned to process.env, it has no special treatment.
so what's happening is - your AWS_PROFILE gets overwritten when we load .env.json. Simply remove those AWS vars from that file and you're good to go.
Jason F. Grissom
@jfgrissom
I personally think it would be best if I didn't have to define anything (too many places to keep track of the value as well as CICD issues related to needing a different config for each environment).
Also, after digging into this problem I see it might not be a Webiny issue. (This is exactly the issue I'm running into - aws/aws-sdk-js#3156).
Pavel Denisjuk
@Pavel910
That's exactly what I was saying in that GH issue you linked. I think it's best to leave credentials setup to the user.
Jason F. Grissom
@jfgrissom
Yup, I noted my agreement in the issue.
Pavel Denisjuk
@Pavel910
Ha! Good find.
Because, as I said, we don't do anything with configs, except loading them into current process.
I will keep an eye on that aws-sdk issue.
Jason F. Grissom
@jfgrissom
For now I'm not going to book an issue here (I started to but while checking/validating what I wanted to put into the issue I found the aws-sdk-js issue).
Pavel Denisjuk
@Pavel910
:thumbsup:
Jeremytijal
@Jeremytijal
Hello I tried to create a different access for client like this
Capture d’écran 2020-03-28 à 14.27.25.png
but I have this error can you explain me why please ?
Capture d’écran 2020-03-28 à 14.27.41.png
Pavel Denisjuk
@Pavel910
what route are you trying to access?
it could be a bug; send me the URL you're trying to access and I'll check in the code.
Jeremytijal
@Jeremytijal
Pavel Denisjuk
@Pavel910
ok, it IS a problem on our side
image.png
as you can see, we're requesting an exact role slug, which is wrong. We should use scopes everywhere, because scopes are static, but roles are dynamic.
I think we already have that issue in our Github.
yep, here is the issue: webiny/webiny-js#747
Jeremytijal
@Jeremytijal
ok nice I didn't check the repo before ask thank you for your answer
Pavel Denisjuk
@Pavel910
Thanks for the bug report, we'll try to implement the fix as soon as we can.
Jeremytijal
@Jeremytijal
Perfect
Ali
@prince1456
is there any documentation how to add new block or some other ui elment
Adrian Smijulj
@doitadrian
Hi @prince1456 , just wanted to confirm, you’re talking about adding a new element to the Page Builder right ?
Pavel Denisjuk
@Pavel910

At the moment our documentation lacks articles on many fronts, so I can give you references to our GH, where you can find how all existing elements work.

Everything is a plugin, so your custom plugin would be no different.
Here you'll find all the existing element plugins: https://github.com/webiny/webiny-js/tree/master/packages/app-page-builder/src/editor/plugins/elements
These are editor plugins, meaning these work inside of an Editor.

And their counterpart are render plugins, which render those elements when you open your site, or render preview in the administration:
https://github.com/webiny/webiny-js/tree/master/packages/app-page-builder/src/render/plugins/elements
so they always go in pairs, 1 editor plugins + 1 render plugin for the same element you're creating.

Ali
@prince1456
are they replica or there is difference between them
its good to have a short video and show an example how to add element or how to add 3rd party api
is there anyway to make this multitenant do i need to configure something
Ali
@prince1456
have you guys made any Ecommerce with webiny