-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pycsw #387
pycsw #387
Conversation
…s a non-localdb pycsw
First point: Shapely brings a GEOS dependency. GDAL is not required by Shapely or pycsw. GDAL may be built with GEOS to enable spatial predicate support in GDAL. |
Second point: the only outstanding item is your request to put csw specific fields in Thanks |
This is a circular dependency error. A brief inspection makes me think:
On a separate note, this also looks suspect - https://github.com/tomkralidis/geonode/blob/pycsw/geonode/catalogue/models.py#L78 |
@ischneider thanks for the info. That signal is previously disconnected: https://github.com/tomkralidis/geonode/blob/pycsw/geonode/catalogue/models.py#L68 |
@tomkralidis d'oh - just saw that quickly but didn't look at the context :) |
The need to connect and disconnect things there is another reason why that Also note that when you re-save the geoserver and other signals do get Ariel [1] On Thu, Sep 6, 2012 at 8:44 PM, Ian Schneider notifications@git.luolix.topwrote:
|
On this, I am strongly opposed on having layers/models.py import anything from The two main reasons are avoiding this kind of circular dependencies and Since the only thing missing is a django signals / models reorg. I can take On Fri, Sep 7, 2012 at 8:45 AM, Ariel Nunez ingenieroariel@gmail.comwrote:
|
@ingenieroariel , given the large history w/ mostly trivial changes, when you merge, can you consider squashing this into one (or maybe a few) commit? |
Thanks for the hint Ian, will follow your advice. On Fri, Sep 7, 2012 at 11:46 AM, Ian Schneider notifications@git.luolix.topwrote:
|
Since there are a lot of commits interleaved with other commits in master and an automatic full rebase on dev fails, I am little bit worried on messing up the code by playing with git's history. BTW, I was able to successfully run the unit, integration and csw tests on this branch. Will start this afternoon the work on relocating the csw fields and removing the need for a double save. |
After giving this a long afternoon and was able to fix the OneToOne relationship, and avoid the double saving. But I found a roadblock with the PYCSW mappings. Where they are designed to have all attributes in just one model. Alternatives to this including getting related attributes by having pycsw check for I was able to rebase onto dev, squash a few issues and add the missing migrations, the output branch can be found here: https://github.com/ingenieroariel/geonode/tree/pycsw However, I realized after more careful testing that while csw and integration tests pass, the unit tests are still failing, since they end up calling the catalogue signals and they return a failure. Once unit tests pass, my suggestion is to merge this work in, disregarding my request to take the fields out. I am still not 100% happy with having these catalogue fields in layers/models.py and the current double saving, but do not believe getting that right is worth losing on getting pycsw as the default CSW catalogue sooner rather than later. It would be great if other committers chime in and let us know what they think of this PR, in my humble opinion, it should go in right after unit tests pass again. |
@ingenieroariel thanks for the info. Before I comment, how can I see your branch in diff mode against geonode dev branch? |
@ingenieroariel : outside of the migrations, what's the difference between your branch and the branch in this PR? That will help us figure out how/why the unit tests are not working anymore (where they were in #387 (comment)) |
Tom: Apologies for not clarifying. After a few rounds of running all tests The reason unit tests are failing are because the catalogue signals are In this PR (#387) as well as that branch, integration and csw pass, but -a On Tue, Sep 11, 2012 at 8:47 PM, Tom Kralidis notifications@git.luolix.topwrote:
|
@ingenieroariel thanks for the info. Any suggestions on how to address this? Given that CSW is a component, should the integration and csw tests be enough? |
The 3 options I see are: #1. Disconnecting the catalogue signals when running the unit tests (I On Wed, Sep 12, 2012 at 7:36 AM, Tom Kralidis notifications@git.luolix.topwrote:
|
… pycsw proper for local dispatching
Fixes cedb12a and 0fa4db1 result in passing unit, integration, and CSW tests, which creates @ingenieroariel is this okay? |
Awesome, Thanks for fixing that so quickly, like I said before I am +2 on merging -a On Wed, Sep 12, 2012 at 12:02 PM, Tom Kralidis notifications@git.luolix.topwrote:
|
Co-authored-by: allyoucanmap <allyoucanmap@users.noreply.github.com>
This PR has the following assumptions: