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

collection hierarchies #2

Merged
merged 3 commits into from
Mar 22, 2011
Merged

collection hierarchies #2

merged 3 commits into from
Mar 22, 2011

Conversation

FND
Copy link
Member

@FND FND commented Mar 3, 2011

as discussed with tb

Ideally, this sort of thing should have tests - perhaps some pairing would make sense to get me started?

FND added 3 commits March 3, 2011 09:27
for now, this replaces the alphabetical view; there doesn't seem to be
much value in retaining that as a separate option - especially because
all collections are displayed at the root level anyway

implementation largely cargo-culted from hierarchical concepts (though
much of concepts' complexity does not apply here - yay simplicity)

there's some potential for DRY-related refactoring; a utility function
might generate treeview markup for lists of both concepts and
collections
in order to avoid redundancies only orphans - i.e. collections without a
parent collection - should appear at the root level

the current implementation seems rather brute-force, i.e. inefficient
and inelegant - there might be a better way

NB: Circular references (e.g. foo contains bar, bar contains foo) result
in the respective collections not being displayed at all, rendering them
inaccessible (unless they have a separate relationship to an orphan).
This was deemed a data-entry issue, thus not relevant here.
@FND
Copy link
Member Author

FND commented Mar 3, 2011

updated (6bedf4f) after discussion with tb

@youngbrioche youngbrioche merged commit 6bedf4f into master Mar 22, 2011
wvk added a commit that referenced this pull request May 15, 2013
Fix login test and changed database cleaner strategy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants