On 6/7/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
There are a couple changes to the planet code which I would like to make
as part of the 4.0 release because I think they are important functional
improvements and because they fix some outstanding bugs.

1. Update feed fetcher

* add new method fetchFeed(String feedURL) which returns a
PlanetSubscriptionData representing the feed.  this would be used when
adding a new subscription from a feed url.  the need for this is further
explained in the last item below.

* modify refreshEntries() method to be updateSubscriptions(). the key
difference being that currently the refreshEntries() method only fetches
new entries for subscriptions and adds them, but the
updateSubscriptions() method will actually update the subscription *and*
its entries.  updating a subscription will include updating the
subscription title, site url, author, etc, which we currently never
update after the subscription is initially added.

Sounds good.


2. Update subscription handling process
* remove the ability to custom edit the title and site url for a feed,
these things are part of a subscription and should be extracted directly
from the feed. hand editing these things is both confusing and error
prone and from what i have noticed from using planet for a while it's a
PITA because if a subscription changes any of these things you may not
know about it and update your aggregation accordingly.

It's definitely true that the title, descrition, URLs should be
extracted from the feed.

But if the title is long and ugly, a user is going to want to edit it
down to something reasonable for display. I'm OK with losing that
capability for now (since it's basically broken), but in the future
we're going to want owners of a Planet have some way to give friendly
names to their subscriptions. BTW, we could do that pretty easily by
adding a name field to the rag_group_subscriptions table and exposing
it as a POJO so users can edit subscription names.


* remove the ability to modify a subscription for a group, you can only
add and remove subscriptions to groups by supplying a feed url. this is
based on a bug which i recently discovered. lets say we have a
subscription that is used in 2 groups and 1 of the groups decides it
wants to modify the subscription to point to a different url. currently
if that subscription is edited and saved it changes the subscription url
for all groups still referencing that subscription, which is wrong.
making this change will simplify the ui quite a bit, improve usability,
and fix this bad behavioral bug.

Makes sense.


All in all I think these things are pretty simple and straight forward
but should add some nice improvements to the planet functionality.  It
should only take me a couple days to do these things so I would plan to
have them done next week some time.

+1


- Dave

Reply via email to