Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 14 20:01
    greenkeeper[bot] labeled #5450
  • Dec 14 20:01
    greenkeeper[bot] opened #5450
  • Dec 14 20:00

    greenkeeper[bot] on semver-7.0.0

    chore(package): update semver t… (compare)

  • Dec 14 16:58
    millette starred canjs/canjs
  • Dec 14 00:14
    greenkeeper[bot] labeled #5449
  • Dec 14 00:14
    greenkeeper[bot] opened #5449
  • Dec 14 00:14

    greenkeeper[bot] on can-super-model-2.0.0

    fix(package): update can-super-… (compare)

  • Dec 14 00:13
    greenkeeper[bot] labeled #5448
  • Dec 14 00:13
    greenkeeper[bot] opened #5448
  • Dec 14 00:13

    greenkeeper[bot] on can-define-rest-model-2.0.0

    fix(package): update can-define… (compare)

  • Dec 14 00:12
    greenkeeper[bot] labeled #5447
  • Dec 14 00:12
    greenkeeper[bot] opened #5447
  • Dec 14 00:12

    greenkeeper[bot] on can-define-realtime-rest-model-2.0.0

    fix(package): update can-define… (compare)

  • Dec 14 00:07
    greenkeeper[bot] labeled #5446
  • Dec 14 00:07
    greenkeeper[bot] opened #5446
  • Dec 14 00:07

    greenkeeper[bot] on can-connect-ndjson-2.0.0

    fix(package): update can-connec… (compare)

  • Dec 13 21:27

    greenkeeper[bot] on @octokit

    (compare)

  • Dec 13 21:25

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Dec 13 21:21

    greenkeeper[bot] on @octokit

    (compare)

  • Dec 13 21:20

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

Frank Lemanschik
@frank-dspeed
so steal can load your app without build
Andrei Balmus
@abalmush
ok I will take a look now
Andrei Balmus
@abalmush
@frank-dspeed do you know if it possible to create multiple bundles in donejs, trying to find this in documentation and can’t
Frank Lemanschik
@frank-dspeed
what bundels exactly
do you want to create?
Andrei Balmus
@abalmush
we have Java based app with some pages like checkout, cart, PDP, PLP
and so on
Frank Lemanschik
@frank-dspeed
sure its possible to do any bundle combination
and you want to do what exactly?
the info that you got a java app with some pages don't gives me much infos
in general if you got a java application you should turn it into a API only solution
and do the GUI indipendent
so your following the so called Microservice Pattern
Andrei Balmus
@abalmush
yeah most of the site uses Microservice Pattern but its not easy because we use e-Commerce platfprm called “hybris” (SAP). So some of the pages are static like PLP and we used can.Controls to attache some behavior
Frank Lemanschik
@frank-dspeed
but here is the detailed documentation about steal maybe you want to know how to create individual packages for your java application parts
@abalmush you can turn such static parts easy into a api
you run the static part isolated as extra server in a docker container or something like that
and code a nodejs api layer over that
that parses the html
on request
Andrei Balmus
@abalmush
yeah this would great, but this requires extra servers, client wont pay for them :D
so it’s not easy
Frank Lemanschik
@frank-dspeed
no extra server needed
you can simply run it
Andrei Balmus
@abalmush
in docker
Frank Lemanschik
@frank-dspeed
without docker also
it was only a example
Andrei Balmus
@abalmush
oh ok
Frank Lemanschik
@frank-dspeed
simply run java on 8080
then run nodejs on 80
and code a api that requests 8080 and returns json
docker was simply the most easy way in my mind to run java isolated
i don't prefer global installed tomcat or java run time
as with docker the version managment is more easy
Andrei Balmus
@abalmush
Yeah I have to discuss this with our infrastructure engeneers
Frank Lemanschik
@frank-dspeed
or simply hire me i can save you a lot of time :)
i can pair up with you and do the basic development plan and also apply it directly
Andrei Balmus
@abalmush
are you looking for part time job? ot full time?
Frank Lemanschik
@frank-dspeed
i take both
in general i am flexible but i tend to automate as much as i can so when i do my stuff right i should make my self useless
Andrei Balmus
@abalmush
can I have your resume?
hah le’s talk in privet chat btw :D
Kevin Phillips
@phillipskevin
@pYr0x do you still want to see that example? or are you using the solution from stackoverflow?
Julian
@pYr0x
@phillipskevin i remember some example in canjs 2 that david tried to solve with the select html
but i dont remember exactly the problem and if david solved it. Maybe @justinbmeyer knows some more info...
Justin Meyer
@justinbmeyer
@pYr0x the make model year example does this
if you use the any-to-string converter
Viktor Busko
@Lighttree

Guys, we are working on JWT Authentication (actually any token auth):
And have some issue with modiying how url behavior makes call.

We would like to have something like this:

Entity.connection = connect(
    [url, JWTAuth, constructor, constructorStore, canMap, realTime, callbacksOnce], {
        url: '/secured/entity',
        Map: Entity,
        List: Entity.List,
        algebra
    }
);

The idea is that ajax call that makes url here:
https://github.com/canjs/can-connect/blob/master/data/url/url.js#L370

Should have tokens as request headers.

The problem is that there is no way how we can pre-configure ajax settings in URL behavior. In order to have beforeSend section with doing some Auth logic there.

The only option that we found is rewrite ajax function

Entity.connection = connect(
    [url, JWTAuth, constructor, constructorStore, canMap, realTime, callbacksOnce], {
        url: '/secured/entity',
        ajax: authenticatedAjax,
        Map: Entity,
        List: Entity.List,
        algebra
    }
);

But in this case we can move all logic to authenticatedAJAX and don't use JWTAuth.

How this best to organize ?

Eben
@eben-roux
anyone around to give advice setting up tests that use canjs components?