Closed
Bug 157169
Opened 23 years ago
Closed 18 years ago
Calendar needs SEQUENCE and TRANSP properties
Categories
(Calendar :: Provider: Local Storage, enhancement)
Calendar
Provider: Local Storage
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ajbu, Assigned: cmtalbert)
Details
Attachments
(1 obsolete file)
I have a patch to add SEQUENCE and TRANSP properties, I'll upload it here
Maybe it would be useful to have the SEQUENCE number increased on every call
to ModifyEvent?
Blocks: cal-standards
Status: NEW → ASSIGNED
Comment 1•23 years ago
|
||
These properties are not mandatory according to the standard. So why should this
bug block 129660?
You are right, although TRANSP says ti SHOULD be set to OPAQUE if the event is
to take up time, SEQUENCE is only a MUST if there is an organiser. I did set
the block because Sequence was mentioned in bug 129660
I'll remove the block, and might add a new tracker bug for the iTip rfc if one
isn't already there.
No longer blocks: cal-standards
Adds TRANSP and SEQUENCE
I renamed the property to sequenceNumber, 'sequence' seems to be reserved for
the idl.
Sequence is defined in libical as int, I used PRUint32 as type, not sure if
there is a better match in idl?
Comment 4•23 years ago
|
||
I didn't find a better place to discuss this other than in this bug.
I was thinking maybe we are at the point where we can add a general purpose
setter and getter for calendar component properties rather than using a seperate
interface for each property. This will relieve us from worrying about all
unimplemented properties and will reduce the code effectively in contrast to
adding a set of functions for each property defined in the standard.
If agreed maybe we can leave SEQUENCE and TRANSP and the rest of optional and
non-significant properties to be dealt with through those functions.
Sounds like a good suggestion, funny that I was thinking about the same thing
this weekend.
It looks like support for RFC 2445 is now complete, and 2446 implementation is
almost there. Properties like SEQUENCE can probably be set with a good default
from libxpical so those are not really needed often in the interface. A
generic get/set property could save adding those properties to the interface,
and at a later time when Calendar is stable we can look at what is actually
used and optimize the interface when needed.
Comment 6•23 years ago
|
||
*** Bug 167553 has been marked as a duplicate of this bug. ***
(In reply to comment #4)
> I didn't find a better place to discuss this other than in this bug.
> I was thinking maybe we are at the point where we can add a general purpose
> setter and getter for calendar component properties rather than using a seperate
> interface for each property.
I think this is a great idea; it would also simplify the implementation of new
calendar back-ends (e.g. bug 263620 for storage, or caldav, etc.), because for
initial impls we can implement a much smaller subset of properties than will be
generally supported.
However, with such an impl, how would you handle properties having different types?
Comment 8•21 years ago
|
||
(In reply to comment #7)
> However, with such an impl, how would you handle properties having different
types?
Maybe a function for each data type?
Maybe a common AUTF8String argument with conversions on both ends?
(In reply to comment #8)
> (In reply to comment #7)
> > However, with such an impl, how would you handle properties having different
> types?
>
> Maybe a function for each data type?
> Maybe a common AUTF8String argument with conversions on both ends?
I don't like the conversion; seems like a lot of overhead just to keep the API
pure in some fashion. A function for each data type wouldn't be too bad; the
API can just return an error if it's not a valid property for that type..
Comment 10•21 years ago
|
||
How about a structure with a union + member where the union has a list of
however many DataTypes we need, and the member just says which data-type is
being used, this structure can be passed back and forth without incident,
(similar to how CSSValues are stored, if I remember right)
Updated•19 years ago
|
QA Contact: colint → nobody
Updated•19 years ago
|
Assignee: ajbu → base
Severity: normal → enhancement
Status: ASSIGNED → NEW
Component: libxpical → Base
QA Contact: nobody → base
Comment 12•19 years ago
|
||
The bugspam monkeys have struck again. They are currently chewing on default assignees for Calendar. Be afraid for your sanity!
Assignee: base → nobody
Comment 13•19 years ago
|
||
So... it's certainly possible to add these properties already, using the current calIItemBase. Since this bug was opened for the purpose making it possible to set these properties, we either need to morph this, or close it.
Comment 14•19 years ago
|
||
Comment on attachment 91170 [details] [diff] [review]
Add transp and sequence properties
R.I.P. libxpical
Attachment #91170 -
Attachment is obsolete: true
Comment 15•19 years ago
|
||
bug 333688 adds sequence to the sqlite schema. Does transparency need its own column, or should it just get thrown into the property bag?
Component: Internal Components → Provider: Local Storage
Depends on: 333688
QA Contact: base → storage-provider
Version: unspecified → Trunk
Comment 16•18 years ago
|
||
This is something ctalbert needs...
-> ctalbert
Assignee: nobody → cmtalbert
Comment 17•18 years ago
|
||
Why isn't set/getProperty("SEQUENCE") sufficient here? -> WORKSFORME?
| Assignee | ||
Comment 18•18 years ago
|
||
(In reply to comment #17)
> Why isn't set/getProperty("SEQUENCE") sufficient here? -> WORKSFORME?
>
We will need the ability to search the calendar for events with a given UID, and then for any UID's that match our query, we must analyze the Sequence ID. So, it doesn't sound like it would need to be an indexed field, per se. So, given that, I don't have any reason why it cannot be part of the property bag.
The only caveat to this is that the iTIP spec maintains that the SEQUENCE id is the secondary key used to uniquely identify any event. So, in the future we might want it promoted to an indexable column and a first order property, but I think we should start out with it in the property bag and then optimize later, if needed.
I think TRANSP should just be a property as well.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•