Skip to content
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

New directory structure for Records #43

Open
xmichael opened this issue Apr 19, 2016 · 1 comment
Open

New directory structure for Records #43

xmichael opened this issue Apr 19, 2016 · 1 comment

Comments

@xmichael
Copy link
Contributor

Change PCAPI high-level /records/ REST call to use a new directory structure underneath. In the new structure the records will be grouped by survey id.

Example
/records/local/UUID/Name used to translate to /fs/local/UUID/records/NAME/records.json but now it should translate to /fs/local/UUID/records/SID/NAME/record.json instead.

The new structure is better suited to COBWEB's survey-based structure and security system and is crucial for enabling scalablility and overcoming namespace pollution in records of different surveys.

This change will break compatibility in FTOpen as::

  • /records/ will require the SID as an extra parameter.
  • FTOpen might already be using low level /fs/ calls for record access that will need to be rewritten to use /records/

This issue is a spin-off of cobweb-eu/cobweb#166

gmh04 added a commit to edina/fieldtrip-open that referenced this issue Apr 26, 2016
gmh04 added a commit to edina/fieldtrip-sync that referenced this issue Apr 26, 2016
@gmh04
Copy link
Contributor

gmh04 commented Apr 26, 2016

The change for the app is in the cobweb-pcapi-43 branch of the sync plugin, but untested. I will test it once it is available in the pcapi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants