Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
COSMOS API Cleanup
Contents
COSMOS API Cleanup - Housecleaning
This wiki page was constructed in response to https://bugs.eclipse.org/bugs/show_bug.cgi?id=218558. In preparation for releasing COSMOS 1.0, committers are required to ensure API guidelines are met. In COSMOS there are three types of APIs:
- Internal - Indicated by having a package name that contains the keyword 'internal' (e.g. org.eclipse.cosmos.dc.cmdbf.services.internal)
- Provisional - Indicated by having a package name that contains the keyword 'provisional' (e.g. org.eclipse.cosmos.dc.cmdbf.services.provisional.metadata.transform)
- Public - Any API that does not fall under (1) or (2)
Please see COSMOS API Contract for more details. COSMOS 1.0 does not plan to release any public APIs. All classes are expected to fall under (1) or (2). Provisional classes MUST be thoroughly commented. A recent (April 17, 2008) manual code scan revealed the following plug-ins to be in violation of the guideline. Package/classes expected to be provisional are indicated by orange and expected internal APIs are indicated by red. The final verdict of what should be internal or provisional is made by the component owner.
Archiving unused code
In i11, there will be a new module added to COSMOS' CVS called ('archive') that will contain all plug-ins that are no longer needed.
Data Collection
Violating Plug-ins | Packages/Classes | Assignee | Complete |
---|---|---|---|
org.eclipse.cosmos.aperi.mdr.ws |
|
Bill Muldoon | No |
org.eclipse.cosmos.common |
|
Bill Muldoon | No |
org.eclipse.cosmos.dc.broker.core |
|
Hubert Leung | No |
org.eclipse.cosmos.dc.cmdbf.services |
|
Ali Mehregani | No |
org.eclipse.cosmos.dc.cmdbf.ws |
|
Hubert Leung | No |
org.eclipse.cosmos.dc.datamanager.ws |
|
Hubert Leung | No |
org.eclipse.cosmos.dc.logging.datamgr.ws |
|
John Todd | No |
org.eclipse.cosmos.dc.logging.datamgr.ws.client |
|
John Todd | No |
org.eclipse.cosmos.dc.service.finder |
|
Hubert Leung | No |
org.eclipse.cosmos.dc.stat.datamgr.ws |
|
John Todd | No |
org.eclipse.cosmos.dc.stat.datamgr.ws.client |
|
John Todd | No |
org.eclipse.cosmos.dc.stat.datamgr.ws.common |
|
John Todd | No |
Archived Bundles
The following plug-ins will be archived:
- org.eclipse.cosmos.dc.birt.helper
- org.eclipse.cosmos.dc.broker
- org.eclipse.cosmos.dc.broker.client
- org.eclipse.cosmos.dc.common
- org.eclipse.cosmos.dc.dataManager
- org.eclipse.cosmos.dc.dataManager.client
- org.eclipse.cosmos.dc.dataManager.common
- org.eclipse.cosmos.dc.local.domain
- org.eclipse.cosmos.dc.local.registry
- org.eclipse.cosmos.dc.logging.datamgr
- org.eclipse.cosmos.dc.logging.datamgr.client
- org.eclipse.cosmos.dc.logging.datamgr.common
- org.eclipse.cosmos.dc.logging.datamgr.web
- org.eclipse.cosmos.dc.management.domain
- org.eclipse.cosmos.dc.management.domain.client
- org.eclipse.cosmos.dc.mdr
- org.eclipse.cosmos.dc.mdr.client
- org.eclipse.cosmos.dc.mdr.common
- org.eclipse.cosmos.dc.mdr.registration
- org.eclipse.cosmos.dc.mdr.registration.client
- org.eclipse.cosmos.dc.mdr.registration.common
- org.eclipse.cosmos.dc.remote.wsdm
- org.eclipse.cosmos.dc.sample.components
- org.eclipse.cosmos.dc.sample.configurations
- org.eclipse.cosmos.dc.sample.jpa
- org.eclipse.cosmos.dc.spec
- org.eclipse.cosmos.dc.stat.datamgr
- org.eclipse.cosmos.dc.stat.datamgr.client
- org.eclipse.cosmos.dc.stat.datamgr.common
- org.eclipse.cosmos.dc.stat.datamgr.web
- org.eclipse.cosmos.dc.tptp.agentcontroller
- org.eclipse.cosmos.dc.tptp.gla.components
- org.eclipse.cosmos.example.mdr.web
- org.eclipse.cosmos.management.common
- org.eclipse.cosmos.management.wsdm
- org.eclipse.cosmos.tptp.dependencies
Re-structuring
Plug-ins | Description | Assignee | Complete |
---|---|---|---|
|
Merge 3 plug-ins into one | John Todd | No |
|
Merge 2 plug-ins into one | John Todd | No |
Data Visualization
Violating Plug-ins | Packages/Classes | Assignee | Complete |
---|---|---|---|
org.eclipse.cosmos.dr.web.ui.viewer |
|
Sheldon Lee-Loy | No |
Archived Bundles
The following plug-ins will be archived:
- org.eclipse.cosmos.dr.build
- org.eclipse.cosmos.dr.drs.service.handler.php
- org.eclipse.cosmos.dr.gvs.report.viewer
- org.eclipse.cosmos.examples.e2e.dr.gvs.report.viewer
Restructuring
The DV bundles are split between the data reporting and the examples/end2end directories. Sheldon has agreed to move all core components from the example module (if any) to the data-reporting module.
Management Enablement
Violating Plug-ins | Packages/Classes | Assignee | Complete |
---|---|---|---|
org.eclipse.cosmos.me.dmtoolkit.common |
|
David Whiteman | No |
org.eclipse.cosmos.me.dmtoolkit.j2ee |
|
David Whiteman | No |
org.eclipse.cosmos.me.management.common |
|
Joel Hawkins | No |
org.eclipse.cosmos.me.management.wsdm |
|
Joel Hawkins | No |
Re-structuring
The toolkit plug-ins can reside under one plug-in: This will reduce 2 plug-ins into one.
org.eclipse.cosmos.me.dmtoolkit |__ org.eclipse.cosmos.me.dmtoolkit.common |__ org.eclipse.cosmos.me.dmtoolkit.j2ee
Resource Modeling
Violating Plug-ins | Packages/Classes | Assignee | Complete |
---|---|---|---|
org.eclipse.cosmos.rm.repository |
|
Ali Mehregani | No |
org.eclipse.cosmos.rm.sml.mdr.ws |
|
Hubert Leung | No |
Archived Bundles
The following plug-ins will be archived:
- org.eclipse.cosmos.rm.sml.mdr
- org.eclipse.cosmos.rm.sml.mdr.web
Defects
The following defects have been opened to handle the work required for this effort:
Bug | Owner |
---|---|
229959 | Ali Mehregani |
229962 | David Whiteman |
229958 | Hubert Leung |
229964 | Joel Hawkins |
229961 | Sheldon Lee-Loy |
229960 | John Todd |
229957 | Bill Muldoon |
Open Questions/Concerns
Harm Sluiman:
It seems the package provisional idea is being skipped and that is the most common form of provisional in Eclipse. Note TPTP introduced the concept of javadoc provisional only as a transient state where api was stable but behavior was not and testing or documentation was not complete. If you only have one provisional state, I strongly suggest you use the package variant.
COSMOS decided to indicate provisional APIs by including the 'provisional' keyword in the package name
Ruth Lee
- Ali, can we look into Bill's bugzilla for this as well? He talks about deprecating any bundles and code that are no longer used, so we should identify those and delete them rather than comment them. 220776
- Question: Looks like COSMOS does not use experimental APIs in COSMOS. What are the COSMOS guidelines for using provisional vs experimental? Eclipse Quality Guidelines
Regarding bug 220776:
>1. Deprecate any bundles and code that are no longer used.
> a. DC assemblies
> b. the "old" annotations
Addressed
>2. Re-organize the directory structure to group logically related bundles together
> a. The Example MDR bundle for OSGI is in the Examples directory but the Example MDR for the web is in the DC directory. They should reside together.
Addressed
> b. All data managers should be grouped into a single directory.
Addressed
> c. The BIRT helper bundle belongs in the data reporting (not in DC)
Addressed
> d. All the CMDBf components (CMDBf services, tooling, registration example, and the MDRs) belong in the same directory
Addressed
> e. The DV bundles are split between the data reporting and the examples/end2end directories
Addressed
> f. We have a common tests directory with subdirectories for each subproject. Should we move each of these subdirectories into a tests directory under their respective subprojects?
Community collectively decided to keep the current structure
Second question has already been raised by Harm and will be discussed during the next architecture call