-
Notifications
You must be signed in to change notification settings - Fork 10
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
nested pages are not returned in order as they are on the filesystem #386
Comments
So I ran the PR at commit |
I too was unable to replicate this bug on a fresh project with the same suggested file structure. Can't test a fix if can't replicate. Test it on a slower machine, with larger pages, run it more times until you break it? I don't know. |
Could have just made a change or forgot to save a file. Was at the tail end of a bunch of work so who knows. Glad to hear it's working for you too. 🍀 |
Not one failing build in #383 even with a bunch more branch runs, so going to consider this cannot reproduce. |
Sad to say, but it looks like this issue may still be relevant :/ |
Type of Change
Summary
Getting intermittent test failure similar to the issue observed in #271 , in that the order of pages returned did not seem to returned from the graph in the same order as they are on the filesystem, in particular when there are multiple files in nested directories. I notice our test case does not act and trying to do a map in the template, e.g.
While it is always true that users can do their filtering and sorting client side, Greenwood should at least to a consistent, default, predictable return order.
Details
For example, when working on the PR for #371 I created a directory structure for the graph test case, similar to my website in that it had nested directories like below
And in a template, listing the posts on the page
However, intermittently, i would get this error
Interestingly, there is a nested test case, but it doesn't have multiple files in the nested directory, like described above. I would start by updating that test case to something like
And return in the following order
The text was updated successfully, but these errors were encountered: