Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:27

    greenkeeper[bot] on @octokit

    (compare)

  • 21:25

    greenkeeper[bot] on @octokit

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

  • 21:21

    greenkeeper[bot] on @octokit

    (compare)

  • 21:20

    greenkeeper[bot] on @octokit

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

  • Dec 12 19:26
    cherifGsoul review_requested #5443
  • Dec 12 18:34
    cherifGsoul synchronize #5443
  • Dec 12 18:34

    cherifGsoul on document-inserted-removed-can6

    Update after review (compare)

  • Dec 12 17:44

    cherifGsoul on theme-3.0.0-pre.5

    (compare)

  • Dec 12 17:44

    cherifGsoul on master

    Update bit-doc-html-canjs (#544… (compare)

  • Dec 12 17:44
    cherifGsoul closed #5445
  • Dec 12 17:01
    cherifGsoul opened #5445
  • Dec 12 17:01

    cherifGsoul on theme-3.0.0-pre.5

    Update bit-doc-html-canjs Upda… (compare)

  • Dec 12 16:40

    cherifGsoul on update-api-page

    (compare)

  • Dec 12 16:39

    cherifGsoul on master

    Update API page (#5432) * Upda… (compare)

  • Dec 12 16:39
    cherifGsoul closed #5432
  • Dec 12 16:39
    cherifGsoul closed #5304
  • Dec 12 01:04
    greenkeeper[bot] commented #5392
  • Dec 12 01:04

    greenkeeper[bot] on core-js-3.5.0

    chore(package): update core-js … (compare)

  • Dec 11 18:34
    greenkeeper[bot] labeled #5444
  • Dec 11 18:34
    greenkeeper[bot] opened #5444
Frank Lemanschik
@frank-dspeed
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?
Kevin Phillips
@phillipskevin
sure
Eben
@eben-roux
so I'm looking at mocha and I used that basic example test
I'm assuming that all the testing runs in node so the module format has to be node compliant
how would I go about testing a module that uses es6 import for instance?
e.g.: import DefineMap from 'can-define/map/';
Kevin Phillips
@phillipskevin
well... you could use babel
Eben
@eben-roux
I know this isn't exactly canjs specific so if you have a good resource I can take a look at that would also be fine... last serious JS testing I did was with JSTestDriver / QUnit about 2 years ago
Kevin Phillips
@phillipskevin
and use mocha's --compilers option
what module loader are you using to load these things in your app?
Eben
@eben-roux
was thinking that there would be some transpiling... is steal-mocha specific to testing in a browser using a page?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
I use steal when developing the apps
Kevin Phillips
@phillipskevin
ok
that's what we use most of the time
and just test in a browser
Eben
@eben-roux
ah... was wondering what that is
I had a look at the canjs tests and did notice that
Kevin Phillips
@phillipskevin
Eben
@eben-roux
something you guys rolled yourself also?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
does it handle async/promise testing also?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
ok, excellent
Kevin Phillips
@phillipskevin
if you don't want to test in a browser, you can use https://mochajs.org/#about-babel
Eben
@eben-roux
I'm going to have a serious look, thanks
Kevin Phillips
@phillipskevin
but testing in a browser when you're writing components usually makes sense
Eben
@eben-roux
I'd prefer testing from node but not sure how feasible that is nowadays
Kevin Phillips
@phillipskevin
you can use headless chrome
Eben
@eben-roux
agreed, but I'm actually writing some infrastructure components that don't have any UI elements
I'm going to give it a shot... will ask when I get stuck, thanks :) --- should get cracking on this tomorrow