Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:19
    marcinczeczko commented #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:17

    marcinczeczko on 398-config-defaults

    (compare)

  • Apr 03 2018 11:17

    marcinczeczko on backpressure-and-configs

    Reorganized standaolone & examp… Merge branch 'milestone/backpre… Set a version of target release and 16 more (compare)

  • Apr 03 2018 11:17
    marcinczeczko closed #400
  • Apr 03 2018 07:49
    marcinczeczko synchronize #400
  • Apr 03 2018 07:49

    marcinczeczko on 398-config-defaults

    Set target version for this bra… Merge branch 'milestone/backpre… (compare)

  • Apr 03 2018 07:48

    marcinczeczko on backpressure-and-configs

    Set target version for this bra… (compare)

  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko commented #398
  • Apr 03 2018 07:40
    marcinczeczko synchronize #400
  • Apr 03 2018 07:40

    marcinczeczko on 398-config-defaults

    Documentation fix. #394 Added encoding of uri para… Write a test case for requestin… and 5 more (compare)

Tomasz Michalak
@tomaszmichalak
Nice, lets chech JWT tokens to keep an authentication data. It will boost your scaling options - you can then set up ELB
Tomasz Michalak
@tomaszmichalak
@ldangelo do you have your endpoint with company data implemented? It can be also a part of Knot.x - you can connect directly do DB from Adapter. You omit one HTTP call. We plan to share new tutorial with similar solution this/next week.
Leo D'Angelo
@ldangelo
@tomaszmichalak no I don’t have the end point yet. I would love to see the tutorial. I was actually planning on submitting my solution to the community but I’m sure you guys will do it better than I.
Tomasz Michalak
@tomaszmichalak
It would be great to see
your solution
We could make code review :)
Leo D'Angelo
@ldangelo
@tomaszmichalak happy to contribute what I come up with. I would appreciate the code review. I have a similar solution in spring and I’m hitting some performance issues. I have 40k non-profit’s with 5-15 users hitting this solution daily so can also provide some benchmarks against spring.
Maciej Laskowski
@malaskowski
hello @ldangelo, that would be great - let us know when you have something to share, we are also going to show some performance statistics (currently in Code Review) - it will be available probably in this week @ GitHub wiki
Tomek Niedźwiedź
@toniedzwiedz
Hello
I want to connect to a template repository over HTTP and I wanted to use the REST service example as a starting point
The file system repository configuration looks different from what's documented there
"knotx:io.knotx.FilesystemRepositoryConnector": {
      "options": {
        "config": {
          "catalogue": "./library/"
        }
      }
    }
Tomek Niedźwiedź
@toniedzwiedz
Would this work?
   "knotx:io.knotx.HttpRepositoryConnector": {
      "options": {
        "config": {
          "clientDestination": {
            "domain": "localhost",
            "port": 80
          }
        }
      }
    }
    "knotx:io.knotx.KnotxServer": {
      "options": {
        "config": {
          "repositories": [
            {
              "path": "/content/.*",
              "address": "knotx.core.repository.http"
            },
         //routing, etc.
Maciej Laskowski
@malaskowski
@toniedzwiedz do you use released 1.0 or snapshot from master?
please remember, that documentation on wiki is actual for the version from master
1.0.0 documentation is here: https://github.com/Cognifide/knotx/wiki/Documentation-1.0.0
there might be small differences - not much changes were since we released 1.0 but there was change in FilesystemRepository (https://github.com/Cognifide/knotx/blob/master/CHANGELOG.md)
and with default configuration for repositories that comes with Knot.x
Maciej Laskowski
@malaskowski
what do you want to achieve exactly?
Tomek Niedźwiedź
@toniedzwiedz
@Skejven priv
Kofi Boakye
@2kodes
hello
??
Maciej Laskowski
@malaskowski
hi @2kodes , will you create a pull request today with fix fo the unwatned \ in knotx-stack.json?
Kofi Boakye
@2kodes
hi @Skejven done that. though i hope i did it in the correct repo :)
Tomasz Michalak
@tomaszmichalak
@2kodes Hi, we answered your questions on google group
can you please close questions that are answered ?
Kofi Boakye
@2kodes
@tomaszmichalak oh ok..will check and do.. didnt know it was pending
Tomasz Michalak
@tomaszmichalak
thank you :)
Kofi Boakye
@2kodes
do i do that br marking an answer as the "best answer"??
Tomasz Michalak
@tomaszmichalak
yep
Kofi Boakye
@2kodes
ok
done..thanks
Kofi Boakye
@2kodes
hello
Tomasz Michalak
@tomaszmichalak
hello
how about 1.4 release, have you checked it?
we would check distribution size this week and fix it probably in 1.4.1
Kofi Boakye
@2kodes
yes its the same. the two pictures i showed in the google group are of the 1.4 standalone/stack and the 1.4 example project... @tomaszmichalak
anyways thanks..will manually take out the ones i dont need or which are not needed....
the jars i mean
Kofi Boakye
@2kodes
took out the jruby jar....22mb.. slimmed things down appreciably
Maciej Laskowski
@malaskowski
hi @2kodes sorry for such long time on responsing https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/knotx/5jo-FwJufqU but I just got back from vacation - I've answered in the topic, could you attach there information on how to reproduce the situation you described?
Kofi Boakye
@2kodes
hi , i have answered and attached a gist @Skejven
Harish Kumar
@harishkumarnangal
hi, any example by which a file can be placed onto S3 bucket
30 replies
sankar raman
@sankar_raman_twitter
Hi, how to write knotx component inside another knotx component ? we are using handle bars in HTML
sankar raman
@sankar_raman_twitter
related to knotx-template-engine
Maciej Laskowski
@malaskowski
hi @sankar_raman_twitter - it is not possible to nest snippets (components) with Knot.x, try to divide complex components into smaller ones, components within single page share context and data
sankar raman
@sankar_raman_twitter

hi @malaskowski Thanks for your response. Consider we have search products page which will call third party services(via Knotx) to get the list of products based on user keyword. we have search component to show list of products.

We need to show "add to cart "component(Getting list of sellers via Knotx) for each product. So we added "add to cart" inside search component.

Please provide ur suggestion how to implement this.

Maciej Laskowski
@malaskowski

If I understand correctly, you have a listing component, that displays a list of products by iterating product by product. Each product item contains an "add to cart" component, that is more complex and requires additional data to work (list of sellers).

Let's distinguish "component" (delivers functionality like product-card or add-to-cart-button) and "fragment" (a part of markup rendered by Knot.x using template engine) first.

One of the approaches would be actually doing the opposite I wrote above. In the latest Knot.x you may combine several components into a bigger fragment, so that your fragment pseudo markup would look like:

<fragment>
  <product-listing>
    for products in list
      <product-card><add-to-cart-button/></product-card>
    end
  <product-listing>
</fragment>

Just note, that processing such a big fragment might be resources and time-consuming, make sure you leverage cache. You may also address this by doing more work on the data before it goes to the template engine module.

Since the Knot.x 2 version you may filter and combine data from multiple sources, even when one source depends on another (e.g. sellers list depending on product details). Using Actions and Tasks you may prepare your data in a way, rendering this markup behaves as the data came from a single source.

sankar raman
@sankar_raman_twitter
Thanks for your quick response @malaskowski
Tomasz Michalak
@tomaszmichalak
@sankar_raman_twitter Which version of Knot.x do you use?