Skip to content

Conversation

@dlebauer
Copy link
Member

I would like to have sites_cultivars associations be avaialable via api when associations_mode =full_info. I am taking a first pass at enabling this

Copy link
Contributor

@gsrohde gsrohde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With some minimal changes that I checked in, this will at least allow getting sites-cultivars information in XML, JSON, or CSV format. But note that this uses the old API.

The "new" action does not do anything other than display a dummy SitesCultivar instance (and then only if you use the second displayed request form "GET /cultivars/new.xml" since no default format is defined). The create action doesn't work.

Most likely, you modeled this controller after the CitationsSitesController, which itself doesn't do what it pretends to.

If you let me know what functionality you actually want here, perhaps I can modify this to be useful in the ways that you want it to be.

@betydb

This comment has been minimized.

@gsrohde gsrohde removed their assignment Jun 6, 2018
@dlebauer
Copy link
Member Author

If I recall, the minimum functionality that we needed here was to be able to access the sites_cultivars relationships. Currently that is difficult to do. This would be nice to have if it is ready to deploy but at this point is low priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants