-
Notifications
You must be signed in to change notification settings - Fork 107
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
Discovery: Determine work to move collections out of GSA CKAN core and into an extension #1461
Comments
@thejuliekramer as promised, here's the details of how the collections are done in the current UI based on what I found. But please double-check this... |
Julie and my wip analysis https://hackmd.io/DP3btMgNQQ6xoxuRlM2Ajw |
@thejuliekramer as promised I’ve updated the analysis doc with eg.gov collections features and code snippets. |
@estebanruseler After poking around for a few days it seems like we can move the methods we've changed for the collections search into an extension and override the existing methods in ckan... the same methods still exist in newer versions of CKAN... I think they will interact the same with the code the exists in datajson and geodatagov extensions as far as I can tell, but I will know more if we get approval to do a spike, I ran out of time to actually fully get it working locally. I would estimate the work to move the code into an extension would take about a week - and testing the feature would take another week since no tests exist. This is also all assuming we want to keep the same exact functionality and UI we have currently and not add anything else (like they did in Dept of Ed). Let me know your thoughts |
@jbrown-xentity FYI! @estebanruseler is available to talk about the findings in more detail if you like, especially if it's useful to you in the context of other projects. |
@estebanruseler would love to sync up about your findings and next steps for this! |
@jbrown-xentity @thejuliekramer and I were working on this together so we should have a chat the 3 of us. Tomorrow my day is pretty full but should we meet for 30 mins on Monday. I'm available from 1.30 to 3 pm ET. |
I was under the impression that it was not easy to patch/extend CKAN's search functionality from an extension, but if that's not the case then the approach sounds great. |
Description
Summary
This is a timeboxed effort to understand the technical implications of, and determine the HL level of effort involved in, moving collections out of catalog-app (CKAN 2.3) and into an extension that works with the OKF main CKAN branch (CKAN 2.8) (running in Docker).
The technical criteria to assess the solution against will be:
Time-boxed at 3ish days:
This discovery task is focused on purely looking at this problem from a "can we build collections as an extension" stand-point, the following are out of scope:
Links
Acceptance Criteria
Tasklist - getting set up for this task
Task list - analysis
Analysis & Recommendation
Recommendation
There are 2 options to deal with collections:
If we opt for an extension there are a number of options.
Therefore the recommendation is to build an extension using the package id = collection pattern. If a richer set of features were required in the future then the extension can be upgraded, possibly using the group id = collections pattern.
As a t-shirt size, we would estimate this to be 2 to 3 weeks of work of which half that time is developing unit tests. But we would know after 2/3 days of dev time whether this is going to work.
Proposed next steps:
Analysis
See more details in our scratchpad analysis doc
Details
Notes about collection in GSA's CKAN fork.
Previous issues related to this
CKAN 2.8 plan of work
Where to start looking for the Collections code
Part of the data.json standard defined in the Project Open Data is the field isPartOf. This field allows the grouping of multiple datasets into a “collection”. This field should be employed by the individual datasets that together make up a collection. The value for this field should match the identifier of the parent dataset.
GSA added this functionality to CKAN. In packages, GSA used some new
extras
:Both seem to have been included in CKAN searches in 2015. Also in 2015 the added to datajson ext. Also added the is_collection extra. GSA also uses this collection_package_id at the DataGovTheme.
From Aaron about the where to find the collections code:
Some info on how collections are implemented in the current UI
In summary, the features of the data.gov
See this document for more info
The text was updated successfully, but these errors were encountered: