CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • hierarchical groups on 2.1
Pages: [1]

Author Topic: hierarchical groups on 2.1  (Read 5319 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
hierarchical groups on 2.1
July 08, 2008, 02:25:29 am
Hi,

I saw that you can define a group a child of another group (great).

On the group tab of a contact, the select box is still a flat list, it would be better to display it using the hierarchy defined:

eg.

GROUP A
  sub group A1
  sub group A2
GROUP B
...

Ergonomy question:
Why are the tag and group tabs so different ?
IMO, it'd be less confusing to have the same design for the two.

Suggested one, both on group and tag you arrive directly on a multiple check box interface (that respects the hierarchy), like the edit tag tab (but you bypass the the "view only" actual tag tab).

X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: hierarchical groups on 2.1
July 17, 2008, 10:13:08 am
I think a multiple checkbox interface for the Tags tab is a good idea - can you post an issue for 2.2 on this.

I've talked to Kurund about using the new hierarchical group checkbox widget on the Contact >> Groups tab - and I think he will implement it for 2.1. Note that this widget will not be enabled by default - but only for folks who are making heavy use of nested groups (there will be a switch in the settings file to turn on).

As far as having the same interface - not sure we can do that completely - since Tags don't have hierarchy implemented (altho may happen at some point) - and Groups have a lot more properties, including the ability to track current groups and unsubscribed groups w/ the date of the status change etc. (hence the multiple "selectors" on the Groups tab).
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: hierarchical tabs on 2.2
July 17, 2008, 11:24:42 pm
Hi,

Great news about the widget.

in the db, you have civicrm_tag.parent_id, I thought it was in the pipe to have a tree on the tags too.

$.02 wishlist: if it's only used for display (no complex stuff like if you select the parent, you select the children).

How, how to introduce a request to update the db to add a boolean civicrm_tag.header (false by default) ?

The idea is that you can have parents that aren't real tags (that you can check), but only headers to group tags.

Eg:

Political party (header)
Republican (regular tag)
Democrat (regular tag)
...

Topic of interest (header)
...list of regular tags)

How, and I'd love to have that as well on the groups ;)

X+



X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: hierarchical groups on 2.1
July 18, 2008, 09:02:52 pm
Headers might be overkill for groups if you're using nesting (but I guess not if no hierarchies). The tags idea sounds useful.

Best bet to get this into the codebase is to spec out your gameplan for it on the wiki, and then implement it on trunk/2.1 and submit a patch. Given codefreeze this coming week - I suspect integration wouldn't happen until 2.2 - but you'd have it for your install.  We'd be happy to give you feedback on your implementation "plan" before you jump into the code.
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: hierarchical groups on 2.1
July 21, 2008, 03:00:21 am
http://wiki.civicrm.org/confluence/display/CRM/Hierarchical+Tags

As requested, would it be possible to update the sql on the 2.1, so I have only code patches to submit and that'd be easier to backport ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: hierarchical groups on 2.1
July 21, 2008, 12:07:27 pm

done: http://issues.civicrm.org/jira/browse/CRM-3335

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: hierarchical groups on 2.1
July 21, 2008, 12:55:47 pm
You're magic.

Thanks

Question: Why is that a tinyint and not a boolean ? Should I use it the same way ?

X+
« Last Edit: July 21, 2008, 12:58:21 pm by xavier »
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: hierarchical groups on 2.1
July 21, 2008, 01:05:56 pm

http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html

boolean and tinyint are the same for mysql. I think in 4.x (which was when civicrm started), boolean did not exist in mysql (or were not aware and used tinyint since then)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
boolean === tinyint
July 21, 2008, 01:20:00 pm
Ok, thanks for the clarification. Was looking at the diff in misc.mysql:

ALTER TABLE `civicrm_relationship`
-       ADD `is_permission_a_b` boolean DEFAULT 0 AFTER `description`;
+       ADD `is_permission_a_b` tinyint DEFAULT 0 AFTER `description`;

And was wondering what it meant :)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: hierarchical groups on 2.1
December 10, 2008, 12:24:43 am
Implemented

http://civicrm.org/node/483
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • hierarchical groups on 2.1

This forum was archived on 2017-11-26.