compass
https://github.com/chriseppstein/compass
CSS
Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
Gitlab::GroupHierarchy#all_groups
Returns a relation that includes the base groups, their ancestors,
and the descendants of the base groups.
The resulting query will roughly look like the following:
WITH RECURSIVE ancestors AS ( ... ),
descendants AS ( ... )
SELECT *
FROM (
SELECT *
FROM ancestors namespaces
UNION
SELECT *
FROM descendants namespaces
) groups;
Using this approach allows us to further add criteria to the relation with
Rails thinking it's selecting data the usual way.
If nested groups are not supported, ancestors_base is returned.Edit
git clone [email protected]:chriseppstein/compass.git
cd compass
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--GroupHierarchy-all_groups-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::GroupHierarchy#all_groups"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--GroupHierarchy-all_groups-for-pr
hub pull-request
# Celebrate!