Commit Graph

30 Commits

Author SHA1 Message Date
Keenan Brock b3eb72f7bb remove travis status 2021-05-26 03:30:00 -04:00
Keenan Brock 97cdc5df13 remove coveralls
getting some errors with coveralls

not really paying attention to these metrics. removing this to simplify the gem dependencies
2021-05-26 03:30:00 -04:00
Keenan Brock 67bb06ef84 introduce COLLATE_SYMBOLS=false to talor test environments
Most database ship with locales built in so they are consistent across installations.
Postgres does not ship with locales so it uses the ones in the operating system.

In the locales there is collation, which basically defines how to sort. We will mostly
notice this in the following 2 ways:

- case sensitive sorting
- include symbols in the sorting

case sensitive: "B", "E", "c", "d"
non-case Insensitive: "B", "c", "d", "E"
include symbols: "Sams Golf Shop", "Sam's Cantina"
ignore symbols: "Sam's Cantina", "Sams Golf Shop"

In our domain, the ignoring symbols causes some issues:

include symbols: "1/2/3", "1/2/5", "1/4", "12/4"
ignore symbols: "1/2/3", "12/4", "1/2/5", "1/4" (think alphabetic sort: "123", "125", "14", 124")

If you are ordering them to put into a tree, then this gets confusing and
can result in children coming back out of order. This is tricky for arrange.

An option was introduced for the case when symbols are not considered. It essentially
'join' the strings together to simulate ignoring the symbols.

Also do remember, that this is sorting alphabetically rather than numerically. So 14 > 123.
2021-05-21 19:43:42 -04:00
Roman Sokhan ea36744e94
Mention counter_cache option 2020-10-15 02:31:17 +03:00
d-m-u 36553a6b53 cleanup readme 2020-08-03 19:23:24 -04:00
d-m-u e15c06470a remove link cause it 404's 2020-07-15 21:01:38 -04:00
Keenan Brock d7cfe4e4eb
Merge pull request #478 from d-m-u/patch-1
Update README.md
2020-06-14 23:52:56 -04:00
d-m-u 48008258aa Update README.md
various nitpicky wording things

sorry but again not quite that sorry

i swear this was the end of things i had issues with in the readme at least
2020-06-13 00:49:42 -04:00
d-m-u c28923960c
Update README.md
witch => which

sorry but I had do
2020-06-09 12:00:08 -04:00
Michael Yagudaev ea69cca6b0
Update outdated rails console insturction
Update the outdated `./script` directory which is no longer part of rails, to simply run rails console.
2020-02-24 14:49:29 -08:00
Daniel Tamai 27c0d12adb Add graph examples in documentation 2019-10-01 20:17:21 -03:00
Stephen A. Wilson 3a40ba3a13
Update which versions are supported
Our team is going though the process of upgrading Rails and ran into the issue that type_for_attribute was undefined. After some investigation, we found that type_for_attribute was added in Rails 4.2 and was not defined previously.
2019-03-13 11:56:50 -04:00
Tilo Sloboda 273f634b43 adding indirects 2018-11-02 20:53:16 -04:00
Keenan Brock b5ffb9cc45 Ancestry 3.0.3 2018-10-23 11:42:35 -04:00
Keenan Brock c56aec2564 improve docs for instance methods 2018-04-19 17:34:11 -04:00
Keenan Brock ad0f0cb188
Merge pull request #380 from besquared/patch-1
Correct Internals Documentation
2018-04-16 19:53:03 -04:00
Keenan Brock e32b8ae7b3
Merge pull request #367 from isimluk/smallish-typo
Fix smallish typo.
2018-03-20 11:48:17 -04:00
Josh Ferguson 2ed52fd8f5
Correct Internals Documentation
Materialized paths are wild-carded from the right hand side according to the code.

https://github.com/stefankroes/ancestry/blob/master/lib/ancestry/materialized_path.rb#L35

Generally speaking b-tree indexes can only do right-hand side LIKE optimizations, I've listed the postgresql documentation below as an example:

https://www.postgresql.org/docs/9.2/static/indexes-types.html
2018-03-07 12:07:32 -08:00
Mohammed Abusaad 3fb10109cb
Update README.md 2017-12-14 12:30:22 +02:00
Mohammed Abusaad 579fe16fe7
Fixes a typo in README.md 2017-12-10 13:03:55 +02:00
Šimon Lukašík eb7be4af9e Fix smallish typo.
And thanks for the gem!
2017-12-05 14:53:42 +01:00
Keenan Brock 8c9ba3666e Merge pull request #360 from eiwi1101/patch-1
Super minor update to ::arrange example in Readme.
2017-09-28 17:50:27 -04:00
Dan Frenette 5b47aa5739 Fix indentation README.md
There's an indentation mistake in the "Navigating your tree" section.
2017-09-23 19:25:43 -04:00
William Eisert 2170489c9d Super minor update to ::arrange example in Readme.
Admittedly the documentation for `<Model>.arrange` took a couple thought cycles before I figured out the resulting data structure. I've added another node to the example to illustrate multiple siblings on one level, and fussed with the code style to be a bit easier to grok.
2017-09-21 22:36:41 -05:00
Joost Baaij 0d359712b4 Directly generate the index in the migration
Rails has built-in syntax to add a column plus associated index.

This means we can drop a bit of instruction. It also guarantees consistency.
2017-08-22 12:49:50 +01:00
pascbjumper2 64d4ed0f80 Add description of #has_parent? to README.md 2017-06-01 18:50:31 -05:00
Keenan Brock 2d3b4d2f30 tweak readme for markdown and rails version 2017-05-05 12:59:31 -04:00
Keenan Brock d5ef9ed13f convert readme to markdown 2017-05-05 12:59:31 -04:00
Stefan Kroes 2d80781c4f Moved Gitter badge into regular README 2014-10-30 16:45:36 +01:00
The Gitter Badger aa3b2abf87 Added Gitter badge 2014-10-30 15:40:01 +00:00