-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Graph format: Refactoring and enhancing #297
Conversation
…abels, added record/Mrecord type shapes, added arrowhead parameter, added support for Display Title
... I'll add a screenhot soon to show, how this new label parameters can be used. |
Example Query:
|
“This PR has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 741782”. |
I'll be doing only a quick review given that my last comments on SFS went into thin air and I'm pressed with time during my support window.
Each PR should note the grant agreement so they can be easily distinguishable (given that those grants are created from tax payers money). Here some initial comments without looking too much at the code itself:
|
@mwjames uups, obviously something went completely wrong with this PR. Seems that I accidentally merged a wrong branch of the code from our internal gitlab. Also my PHPStorm code formatter has messed up something. I'll double check. Sorry. |
@mwjames would you recommend moving the Graph format to an own directory (graph)? Currently it's sharing the graphviz directory with the Process format? |
@SchmidDev please do not update this PR with temp. stuff. @mwjames (and others) please ignore latest commits. The whole thing is a complete mess now. |
Yes. CI failures have been fixed with 9769c97. |
@gesinn-it Are we going to continue this one, would be a shame if steam is running out here! By the way, I saw something peculiar, the naming of getLabel1, getLabel2, and getLabel3. Either use a more descriptive name or simply use |
@mwjames yes, we are definitely continue this one. I'm traveling the next two weeks (including SMWCon). I hope I can finish latest during SMWCon... |
#314 can guide you on the principles of how a refactoring effort can look like. |
I'll create separate |
Good idea, I'll create a GraphFormatter class + GraphFormatterTest... |
Would it make sense to change the PSR-4 pointer in |
Would it make sense to change the PSR-4 pointer in `composer.json` to the
/formats/ directory instead of creating a /src/ directory for one format?
Refactored formats should go into `/src` as what happened in #314.
This is to get some uniformity and have somewhat of a task list about
the once that are tested and those that contain "old" code.
There is no rush to make the switch and only the once that are truly
refactored should be moved to`/src`.
Cheers
…On 10/12/17, Stephan Gambke ***@***.***> wrote:
Would it make sense to change the PSR-4 pointer in `composer.json` to the
/formats/ directory instead of creating a /src/ directory for one format?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#297 (comment)
|
One of my biggest problems when looking for something in the SMW code is that I never know, in which folder to start. Given the structural changes in SMW the "clean slate" approach makes sense, but I think SRF is already structured well enough and any new folder structure will look pretty much the same as the old one. I would also challenge the other two points. Arranging the project structure to have a tasklist is somewhat similar to putting ToDos and FixMes in the code. If we want a task list we should use a Github issue/project/whatever. And test coverage or 'refactoring done' as a criterion to move formats to the new folder will probably not work either. I am working on the Filtered format right now. Done some refactoring, but it is still messy. Move over or not? Same goes probably for a number of other formats. Finally with SRF we are in a situation, where usually a format is worked on when somebody has an issue with it. Given this approach we will end up having the So, I would suggest
|
Moving the discussion about refactoring in general to #321. |
@gesinn-it Any update? |
This PR is open since Aug 31, and we still have some unresolved issues. Do we expect an update in near future? |
@mwjames: I'm very busy with projects at the moment. I will definitely need some days to do the changes you have suggested. No worries that this PR dies, because I need the changes to the graph format myself ;-) |
If this ever gets completed, please see #365. |
Please make sure you use the master (see section "Conflicting files") as base, furthermore please DO NOT change the composer to something like:
Master works against master and against a restricted branch like "~2.5.3". |
@kghbln @hexmode @krabina @gesinn-it @RacoonDev This PR has been stuck here for nearly two years and I'm wondering whether we can resurrect this change and finalize it, otherwise we need to close it. Also, as indicate above I expect that people committed to a PR do finalize it in an appropriate amount of time. Please consider this as a topic for discussion among yourself for the next SMWCon about how to improve contributions and what is needed to make them an actually contribution to the overall SMW community. NoteAn epic task of refactoring should be split into smaller pieces making room for early adaptions without necessarily impairing existing functionality. |
As for "added support for Display Title" see #496 which was merged prior given the unknown state of this PR. |
@mwjames this PR really got stuck. Development progressed somewhat bumpy between branching 3.0 and general refactoring. In the meanwhile, the code base of SRF has evolved. I think we should consider closing this PR and re-implement on current code base... The gesinn.it team could do this job during the next weeks. |
re-implement on current code base... The gesinn.it team could do this job
during the next weeks.
I would appreciate that and maybe doing it in smaller iterative steps
might help to get this done where you use the current PR as blueprint
for the expected outcome.
…On 7/22/19, gesinn.it ***@***.***> wrote:
@mwjames this PR really got stuck. Development progressed somewhat bumpy
between branching 3.0 and general refactoring. In the meanwhile, the code
base of SRF has evolved. I think we should consider closing this PR and
re-implement on current code base... The gesinn.it team could do this job
during the next weeks.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#297 (comment)
|
@JeroenDeDauw could you please close this PR. |
Done |
This PR is made in reference to: #
This PR addresses or contains:
This PR includes: