Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Bertrand Delacretaz
On Wed, Jun 6, 2018 at 7:23 PM, Jörg Hoh wrote: > ...Streamer stream = resource.adaptTo(Streamer.class); > could do the trick. Then you can have everything in a dedicated bundle and > there is no need to change any of the sling core APIs or bundles +1 -Bertrand

Re: [Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Robert Munteanu
On Wed, 2018-06-06 at 13:17 -0700, Eric Norman wrote: > Keep in mind that an in memory cache wont work so well in a cluster > unless > you can guarantee sticky sessions from your load balancer. That's a good point. Hasini, can you make a note of that for improvements? But let's start simple

Re: [Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Eric Norman
Keep in mind that an in memory cache wont work so well in a cluster unless you can guarantee sticky sessions from your load balancer. On Wed, Jun 6, 2018, 1:11 PM Robert Munteanu wrote: > On Wed, 2018-06-06 at 21:37 +0300, Ioan Eugen Stan wrote: > > Hi, > > > > I think you should store it in

Re: [Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Robert Munteanu
On Wed, 2018-06-06 at 21:37 +0300, Ioan Eugen Stan wrote: > Hi, > > I think you should store it in memory. Use a hashmap or something. > > Make it work and then optimize. The check should be very fast so > don't worry about it. +1 Robert

[jira] [Updated] (SLING-7684) Add Badges to GitHub Repo Readmes

2018-06-06 Thread Dan Klco (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Klco updated SLING-7684: Attachment: project-readme.png modules-page.png features-page.png > Add

FINAL REMINDER: Apache EU Roadshow 2018 in Berlin next week!

2018-06-06 Thread sharan
Hello Apache Supporters and Enthusiasts This is a final reminder that our Apache EU Roadshow will be held in Berlin next week on 13th and 14th June 2018. We will have 28 different sessions running over 2 days that cover some great topics. So if you are interested in Microservices, Internet of

Re: [Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Eric Norman
A while back, I had implemented an oauth2 sling authentication handler for a private project. If you have interest in seeing the code I could probably find it again. I used the scribejava library from [1] to do most of the oauth2 heavy lifting and it seemed to work pretty well for hooking into

Re: [Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Ioan Eugen Stan
Hi, I think you should store it in memory. Use a hashmap or something. Make it work and then optimize. The check should be very fast so don't worry about it. In case you do need to store it, use jcr. Always delay optimisations. Caching is an optimization. Eugen Stan Netdava

[Dev][GSoC] Using a cache to store a string value

2018-06-06 Thread Hasini Witharana
Hi all, I am implementing OpenID Connect protocol for Sling. First, Sling is sending an authorization request to Google( OpenID Connect Provider - OP). This request contains an attribute call state. State is a string object. If the authorization is successful Google will send a response with an

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Jörg Hoh
Hi 2018-06-06 17:01 GMT+02:00 Jason E Bailey : > This started out as a separate Object which was part of a bigger set of > code, from which the feedback eventually had it end up as a single method > in the Resource interface. > Resource implements the very flexible Adapter interface, so I

[jira] [Created] (SLING-7711) [JIRA] Access to assign tickets / sub-tasks

2018-06-06 Thread Chris Millar (JIRA)
Chris Millar created SLING-7711: --- Summary: [JIRA] Access to assign tickets / sub-tasks Key: SLING-7711 URL: https://issues.apache.org/jira/browse/SLING-7711 Project: Sling Issue Type:

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Bertrand Delacretaz
On Wed, Jun 6, 2018 at 3:53 PM, Carsten Ziegeler wrote: > ...I see the value of having this as a library > everyone can use. But I think we usually should keep library code > separate from the pure (in lack of a better word) api like the resource > api... I agree with that. IIUC the current

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Carsten Ziegeler
Because the resource resolver bundle is a provider (not consumer) of the resource package and therefore has a narrow version import range, basically limited to a specific minor version. It implements a couple of interfaces from that package. So adding anything to that package comes with this

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Jason E Bailey
1. good to know. 2. why? - Jason On Wed, Jun 6, 2018, at 9:54 AM, Carsten Ziegeler wrote: > Forgot one thing: each time we change the resource api package, we need > to re-release the resource resolver (although we might not need to > implement anything there) - which is another indicator

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Jason E Bailey
This started out as a separate Object which was part of a bigger set of code, from which the feedback eventually had it end up as a single method in the Resource interface. The libraries I mentioned would be entirely separate, all of this came from here:

[GitHub] dulvac closed pull request #3: SLING-7669 StartupManager overwrites the frameworkstartlevel property…

2018-06-06 Thread GitBox
dulvac closed pull request #3: SLING-7669 StartupManager overwrites the frameworkstartlevel property… URL: https://github.com/apache/sling-org-apache-sling-launchpad-base/pull/3 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed

[jira] [Commented] (SLING-7710) [HTL] Enhance error reporting for plugin errors

2018-06-06 Thread Radu Cotescu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16503334#comment-16503334 ] Radu Cotescu commented on SLING-7710: - Implemented in [commit

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Carsten Ziegeler
Forgot one thing: each time we change the resource api package, we need to re-release the resource resolver (although we might not need to implement anything there) - which is another indicator whether the resource api package is a good candidate or not Regards Carsten Carsten Ziegeler wrote >

[jira] [Created] (SLING-7710) [HTL] Enhance error reporting for plugin errors

2018-06-06 Thread Radu Cotescu (JIRA)
Radu Cotescu created SLING-7710: --- Summary: [HTL] Enhance error reporting for plugin errors Key: SLING-7710 URL: https://issues.apache.org/jira/browse/SLING-7710 Project: Sling Issue Type:

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Carsten Ziegeler
I haven't really followed the whole discussion but the keyword in your a response to me is "library". I see the value of having this as a library everyone can use. But I think we usually should keep library code separate from the pure (in lack of a better word) api like the resource api. There are

[jira] [Commented] (SLING-7709) [HTL] Implement the data-sly-set block element

2018-06-06 Thread Radu Cotescu (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16503302#comment-16503302 ] Radu Cotescu commented on SLING-7709: - Implemented in: * [commit

[jira] [Created] (SLING-7709) [HTL] Implement the data-sly-set block element

2018-06-06 Thread Radu Cotescu (JIRA)
Radu Cotescu created SLING-7709: --- Summary: [HTL] Implement the data-sly-set block element Key: SLING-7709 URL: https://issues.apache.org/jira/browse/SLING-7709 Project: Sling Issue Type:

Re: [DISCUSSION][API][PROPOSAL] Adding Stream generator to Sling API

2018-06-06 Thread Jason E Bailey
Hi Jörg, I think this is, in part, a matter of personal experience. My team and I have found traversing a sub tree traversal so useful that I've created libraries of predicates and an expression language to ease the creation of predicates for those traversals. I would estimate that we use a

[jira] [Resolved] (SLING-7692) MockSession.revert(false) support should be clearer

2018-06-06 Thread Nicolas Peltier (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Peltier resolved SLING-7692. Resolution: Fixed > MockSession.revert(false) support should be clearer >

[GitHub] npeltier closed pull request #1: Revert "SLING-7692 implement refresh(false)"

2018-06-06 Thread GitBox
npeltier closed pull request #1: Revert "SLING-7692 implement refresh(false)" URL: https://github.com/apache/sling-org-apache-sling-testing-jcr-mock/pull/1 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of

adaptTo() 2018 - Agenda online

2018-06-06 Thread Stefan Seifert
Hi everyone, we are happy to present to you the official adaptTo() 2018 agenda: http://adapt.to/schedule If you were waiting for the agenda to book your ticket you can get it here: http://adapt.to/tickets This year we have a special for you! We are happy to offer you two free Hands-On Labs.