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

Removes defunct resource editing functionality #565

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Conversation

mejackreed
Copy link
Contributor

This commit removes legacy and non-working resource editing functionality. This functionality is broken and if needed, should be rewritten accordingly with updated patterns.

Closes #523

I hope this can also reduce some complexity and comments on #516 and the various APO related changes PR's by @darrenleeweber .

@dazza-codes
Copy link
Contributor

Well I'm glad we attended to that XXX spec and resolved to remove all this. I suggest a patch to keep all this stuff get thrown into a branch that may go stale.

@mejackreed
Copy link
Contributor Author

Can you elaborate on your suggestion about the patch and branch? I'm not sure I follow a 💯%

@dazza-codes
Copy link
Contributor

When this thing is good to go, merge it, create a new branch, reset and commit to that branch. I guess that will thereby keep everything thrown away in a tidy form at the time it was thrown away. With a branch name on it, it should be easier to find than trolling through commits? Anyhow, no big deal.

@dazza-codes
Copy link
Contributor

👍 (although I don't know much about these features and whether they would be easy to complete rather than throw them away).

@mejackreed
Copy link
Contributor Author

Ah gotcha good call. Just created #566 which references the SHA and this PR so we can dig it up later on.

<%if can_manage && version_open
edit_resource_link="/items/#{params[:id]}/resource/?edit=true&resource=#{resource['id']}"%>
<%= link_to "(edit)", edit_resource_link, :data => {ajax_modal: 'trigger'} %>
<%end%>

Choose a reason for hiding this comment

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

The version_open = can_close_version? object.pid statement can also be deleted, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that @drh-stanford ! Just pushed a change removing that.

This commit removes legacy and non-working resource editing functionality. This functionality is broken and if needed, should be rewritten accordingly with updated patterns.
drh-stanford pushed a commit that referenced this pull request Feb 22, 2016
Removes defunct resource editing functionality
@drh-stanford drh-stanford merged commit 593c085 into master Feb 22, 2016
@drh-stanford drh-stanford deleted the remove-resource branch February 22, 2016 18:45
@drh-stanford
Copy link

This PR strictly removes code from the unused resource (file) management UIs.

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

Successfully merging this pull request may close these issues.

None yet

4 participants