Closed Bug 11745 Opened 27 years ago Closed 2 years ago

nsCompositeDataSource.cpp doesn't implement GetAllResources

Categories

(Core Graveyard :: RDF, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE
Future

People

(Reporter: daniel.brickley, Unassigned)

References

()

Details

(Keywords: helpwanted)

Attachments

(1 file)

1129 NS_IMETHODIMP 1130 CompositeDataSourceImpl::GetAllResources(nsISimpleEnumerator** aResult) 1131 { 1132 NS_NOTYETIMPLEMENTED("write me!"); 1133 return NS_ERROR_NOT_IMPLEMENTED; 1134 } This makes it tricky to debug-dump a composite datasource (such as might live behind a tree widget) from Javascript; this holds up interoperability testing against other RDF implementations.
Blocks: 11414
Status: NEW → ASSIGNED
Target Milestone: M10
Target Milestone: M11 → M15
This is going to have to wait.
QA Contact: phillip → tever
Target Milestone: M15 → M16
Keywords: helpwanted
Target Milestone: M16 → M30
Target Milestone: M30 → Future
tever is not RDF QA anymore
QA Contact: tever → nobody
waterson left the building
Assignee: waterson → nobody
Status: ASSIGNED → NEW
QA Contact: nobody → core.rdf
This is a quick impl. Basically I copied CompositeDataSourceImpl::GetAllCmds and made few adjustments. I have to look at the diff between NS_NewArrayEnumerator and NS_NewUnionEnumerator to determine which would be more efficient in this case.
Attachment #158512 - Flags: review?(axel)
Comment on attachment 158512 [details] [diff] [review] initial impl of CompositeDataSourceImpl::GetAllResources The big problem with this patch, and the reason that this was never implemented, is that you need to prevent duplicates. It is guaranteed that duplicate resources will appear in multiple datasources, and if you don't consolidate the duplicates you will end up with bad serializations and other problems. I can imagine a local hashtable keyed off the nsISupports* of each resource would work decently.
Attachment #158512 - Flags: review?(axel) → review-
Product: Core → Core Graveyard
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: