-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove root #15
Comments
change URI scheme separator to :// |
This has too much impact to be possible to complete before the release. We should also think this through carefully:
|
This is not about the TOC, which is surely not coming this release (or after). The problem is that renaming the root to be a slash is an illegal name at the moment for a component. On the side: |
IMHO: the root should not become a singleton. I think we should follow the rule to avoid singletons as much as possible. For example, we were planning to have multiple so called 'workspaces' to allow the existence of multiple connected simulations. This - could - be done with multiple roots (although I dont defend any design right now). In practice our root is only one, because we access it via the Core::instance().root() - and Core is a singleton. |
I agree that the root cannot be a singleton. The client manages two roots : one from its own Core instance and another one for the mirrored tree. They are separated to avoid conflicts with the subcomponents such as "Environment", "Libraries", "Tools",... Currently, the root path is "/" and I think it should remain like that (like when you do |
I agree with Quentin. |
OK, I slightly changed the title of this issue (used to be rename root). With the changes related to issue #48 and #107, the component lookup is basically such that root becomes "implicit", i.e. a parentless component is the head of the tree, and would always be / regardless of its name (so the name of root doesn't appear in any path, but it can be named whatever you want). In the current implementation, root is still used, but it would be very easy to remove now and replace with a CGroup. |
Nice! This makes things more simple and clear.
accesses then the component starting on root Core::instance().root(). |
Root can be removed after the notification queue system is merged into EventHandler. Need to discuss with @gquentin |
OK to remove the root. For the removing of the queue, this should no be hard. Do you want me to do it, or you prefer to do it yourself? |
If you have the time, I'd prefer that you do it, since it's not clear to me how it works, exactly. |
OK, I'll that today. |
…tificationQueue now uses EventHandler.
Get rid of event management through the root (issue #15)
OK, I just pulled the modification. I just "merged" the notification queue. Root is still there. |
Great job!! Commit feaacaa seems OK. I will simplify this part since there is no Root anymore :) There is only one thing that is not "correct" IMO: standard URI format is scheme://machine/path or (without the machine) scheme:///path . So we should have cpath:///Libraries. We discussed long time ago with Tiago about respecting this rule (but maybe things have changed since then) ;) Anyway, this should not be a critical issue. |
Yes. Quentin stands correct. According to the URI standard it should be:
or
I suggest we keep that. |
OK. I suggest then to just insert the "//" when converting to string. For http, they are now stored in the path string, which complicates parsing. |
* 'master' of github.com:coolfluid/coolfluid3: [FIX] Issue coolfluid#15: ntree utest [FIX] Temporarily disable lib cleanup because of issue coolfluid#145 [DOC] Issue coolfluid#15: Update documentation after root removal [ENH] Issue coolfluid#15: remove root [FIX] Issue coolfluid#15: More fixes after rename of root to / [COSM] removed useless include [ENH] issue coolfluid#15 : removed event management from the Root. NotificationQueue now uses EventHandler. [DEV] Issue coolfluid#15: Fix some errors after rename [DEV] Issue coolfluid#15: Start renaming root [FIX] Make Component data members private [FIX] GUI graphics uTest [ENH] Issue coolfluid#48: complete_path is now implemented as access_component().uri() Conflicts: cf3/common/Component.hpp cf3/common/URI.hpp
Can we close this issue? |
no, the double slash is not there yet |
we should rename root from the current //Root to simply "/"
The text was updated successfully, but these errors were encountered: