uPortal IRC Logs-2011-03-08

[08:58:41 CST(-0600)] <EricDalquist> anyone have any idea how to annotate a Map<String, Map<String, String>> in JPA2?
[09:08:17 CST(-0600)] <athena> no (smile)
[09:24:15 CST(-0600)] <EricDalquist> I know how I would model the tables if I was writing it all in plain jdbc
[09:24:23 CST(-0600)] <EricDalquist> but I can't figure out how to get hibernate to do it that way (tongue)
[09:24:28 CST(-0600)] <EricDalquist> and it is driving me nuts
[09:26:38 CST(-0600)] <athena> yeah it's really confusing sometimes
[09:26:48 CST(-0600)] <EricDalquist> yes
[09:27:11 CST(-0600)] <EricDalquist> as much as I think JPA is really helpful I feel like I need a JPA guru to deal with all the non-standard cases that come up
[09:34:57 CST(-0600)] <athena> yeah, i hear that
[10:14:58 CST(-0600)] <Bananobot> Is there a way to manually clear a WebProxy cache?
[10:16:38 CST(-0600)] <EricDalquist> you might be able to clear the Ehcache instance via JMX
[10:24:25 CST(-0600)] <Bananobot> EricDalquist: I just read that you're the project lead for WebProxy. Is the clipping feature widely used? Because I'm having trouble finding any documentation or examples on how the comment-based clipping works
[10:24:50 CST(-0600)] <Bananobot> Or what subset of XPath the path-based clipping supports
[10:28:30 CST(-0600)] <EricDalquist> I don't think it is used at all
[10:28:38 CST(-0600)] <EricDalquist> it was a requirement when it was originally developed for UW
[10:28:43 CST(-0600)] <EricDalquist> but we've never actually used it
[10:28:50 CST(-0600)] <EricDalquist> I think I wrote the code for it
[10:28:53 CST(-0600)] <EricDalquist> but that was in 2004
[10:29:10 CST(-0600)] <EricDalquist> so I don't have much of a recolection of how it works
[10:29:13 CST(-0600)] <EricDalquist> or even if it works
[10:29:50 CST(-0600)] <Bananobot> We're trying to set up some kind of content management capabilities for a uPortal instance that mostly serves as a public-facing content site. We're looking to use WebProxy with some kind of CMS backend (WordPress, Joomla, etc.)
[10:30:44 CST(-0600)] <Bananobot> The two issues I'm trying to resolve are clipping (we could just output the clipped content, but we would prefer if we could use the clipping feature instead), and handling cache expiration when publishing a content update
[10:43:58 CST(-0600)] <EricDalquist> naming DB tables is a pain
[10:44:04 CST(-0600)] <EricDalquist> especially with oracle's 30 char limit
[11:16:54 CST(-0600)] <athena> is fisheye dowN?
[11:17:11 CST(-0600)] <EricDalquist> probably just really really really really slow
[11:17:16 CST(-0600)] <athena> lol
[11:17:18 CST(-0600)] <athena> sad.
[11:17:22 CST(-0600)] <EricDalquist> yeah
[11:17:35 CST(-0600)] <EricDalquist> it doesn't like our svn repo for some reason
[11:17:43 CST(-0600)] <EricDalquist> atlassian has never been able to help
[11:19:23 CST(-0600)] <athena> (sad)
[11:19:26 CST(-0600)] <athena> sad
[11:19:36 CST(-0600)] <EricDalquist> yes
[11:19:51 CST(-0600)] <athena> oh well
[11:20:10 CST(-0600)] <EricDalquist> maybe we should just move uPortal to github (tongue)
[11:20:33 CST(-0600)] <athena> yeah i've been wondering how long it'll be until we think about git
[11:20:43 CST(-0600)] <athena> seems like some other projects are moving that direction
[11:21:02 CST(-0600)] <EricDalquist> yeah
[11:21:13 CST(-0600)] <EricDalquist> I've started playing with github a little on my own
[11:21:15 CST(-0600)] <EricDalquist> looks interesting
[11:21:16 CST(-0600)] <athena> oh cool
[11:21:22 CST(-0600)] <athena> i haven't really played with it
[11:21:25 CST(-0600)] <EricDalquist> the one thing I like is the local repo stuff
[11:21:29 CST(-0600)] <athena> a few people here that are passionate about it
[11:21:29 CST(-0600)] <EricDalquist> that I can do lots of local commits
[11:21:35 CST(-0600)] <athena> yeah
[11:21:38 CST(-0600)] <EricDalquist> and then just push a whole batch of them to the main repo
[11:21:46 CST(-0600)] <athena> (smile)
[11:21:53 CST(-0600)] <EricDalquist> makes it easier to do big changes and still have the ability to revert things
[11:21:59 CST(-0600)] <athena> yeah
[11:22:01 CST(-0600)] <athena> makes sense
[11:22:03 CST(-0600)] <EricDalquist> random thought
[11:22:10 CST(-0600)] <EricDalquist> do we still need the UP_ prefix on our DB tables?
[11:22:15 CST(-0600)] <EricDalquist> does it really add any value?
[11:22:18 CST(-0600)] <athena> dunno
[11:22:28 CST(-0600)] <EricDalquist> I guess some of the default portlets store stuff in the portal DB
[11:22:29 CST(-0600)] <athena> guess there are plenty of people that do have portlets write to the same db
[11:22:39 CST(-0600)] <athena> particularly portlets included via maven overlays
[11:22:41 CST(-0600)] <athena> yeah
[13:32:34 CST(-0600)] * EricDalquist can't wait for everything in uPortal to use JPA :/
[14:57:51 CST(-0600)] <athena> EricDalquist: what does it take to add a custom portlet mode to uPortal?
[14:58:09 CST(-0600)] <EricDalquist> depends, do you want the portal to actually do anything with it?
[14:58:14 CST(-0600)] <EricDalquist> or just allow it to work
[14:58:19 CST(-0600)] <athena> just allow it to work
[14:58:27 CST(-0600)] <EricDalquist> what version of uportal?
[14:58:29 CST(-0600)] <athena> just be able to render in whatever magic view it's called in
[14:58:31 CST(-0600)] <athena> 3.2 and 4
[14:58:39 CST(-0600)] <athena> assume those would have to be separate modifications, of course
[14:58:44 CST(-0600)] <EricDalquist> yeah
[14:58:48 CST(-0600)] <EricDalquist> though similar
[14:59:12 CST(-0600)] <EricDalquist> in both look in portletContainerContext.xml
[15:00:43 CST(-0600)] <athena> wow, do i just need to add a new mode?
[15:00:44 CST(-0600)] <EricDalquist> in trunk there is a bean that looks like:
[15:00:44 CST(-0600)] <EricDalquist> http://pastebin.com/wHp76qSL
[15:00:49 CST(-0600)] <EricDalquist> yup
[15:00:53 CST(-0600)] <EricDalquist> I believe so
[15:01:55 CST(-0600)] <athena> nice!
[15:01:57 CST(-0600)] * athena cheers
[15:02:08 CST(-0600)] <athena> do we need to do anything in the url provider or is that just magic too?
[15:02:22 CST(-0600)] <EricDalquist> um, the URL provider only knows about normal and maximized
[15:02:33 CST(-0600)] <EricDalquist> since those are the only two states that actually affect the whole page
[15:02:36 CST(-0600)] <EricDalquist> oh and exclusive
[15:02:52 CST(-0600)] <EricDalquist> if it isn't in that list it should just work
[15:03:03 CST(-0600)] <EricDalquist> I'm more confident in that should for 3.2 than for trunk
[15:03:20 CST(-0600)] <EricDalquist> but it should just fall back on using a URL parameter if it isn't a recognized window state
[15:03:26 CST(-0600)] <athena> ok
[15:03:39 CST(-0600)] <athena> you know it seemed like exclusive wasn't working in trunk, incidentally
[15:03:44 CST(-0600)] <EricDalquist> I think the portal will just treat it as normal
[15:03:45 CST(-0600)] <EricDalquist> yeah
[15:03:47 CST(-0600)] <EricDalquist> it isn't yet
[15:04:21 CST(-0600)] <athena> oh ok
[15:04:30 CST(-0600)] <athena> ok i'll have to test it out, thanks
[15:04:31 CST(-0600)] <athena> (smile)
[15:08:30 CST(-0600)] <EricDalquist> IDE refactoring tools are wonderful things
[15:09:07 CST(-0600)] <EricDalquist> just created an interface to define UserProfile … eclipse automatically finds all references to UserProfile in the project and where possible replaces it with the interface instead (big grin)
[15:20:29 CST(-0600)] <athena> i know, i love it!
[15:20:34 CST(-0600)] <athena> really nice
[15:31:48 CST(-0600)] <DrewWills> EricDalquist is there a writeup somewhere of the WI stats aggregation strategy? table design, specifics about when things are aggregated, and what goes where?
[15:33:22 CST(-0600)] <EricDalquist> I don' think that exists anywhere
[15:33:28 CST(-0600)] <EricDalquist> there is the aggregator code
[15:33:30 CST(-0600)] <EricDalquist> and thats about it
[15:33:54 CST(-0600)] <DrewWills> was that posted to JIRA maybe?
[15:33:58 CST(-0600)] <DrewWills> confluence?
[15:34:33 CST(-0600)] <EricDalquist> https://source.jasig.org/sandbox/StatsAggregator/
[15:34:43 CST(-0600)] <EricDalquist> it is 100% oracle specific
[15:34:55 CST(-0600)] <EricDalquist> which is why it is still just languishing in the sandbox
[16:01:21 CST(-0600)] <EricDalquist> yay for hibernate generated sql: http://pastebin.com/Tx13skan
[16:01:54 CST(-0600)] <athena> gack
[16:02:36 CST(-0600)] <EricDalquist> from the unit tests for the new stylesheet descriptor and stylesheet user preferences code
[16:02:49 CST(-0600)] <EricDalquist> it would be simpler if caching was turned on
[16:03:02 CST(-0600)] <EricDalquist> since it wouldn't need to join to load the descriptor in the same query that it is loading the preferences