FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixes incorrect directory metadata by Potherca · Pull Request #7 · Potherca/flysystem-github · GitHub

Fixes incorrect directory metadata - #7

Merged
Potherca merged 23 commits into
developfrom
issues/6/incorrect-directory-metadata
Apr 19, 2016
Merged

Fixes incorrect directory metadata#7
Potherca merged 23 commits into
developfrom
issues/6/incorrect-directory-metadata

Conversation

Potherca commented Apr 3, 2016
edited
Loading

Copy link
Copy Markdown
Owner

The return values of metadata for directories is incorrect as mentioned in issue #6.
This pull request resolves that issue.

Potherca changed the title 🚧 [WIP] Fixes incorrect directory metadata 🚧 [WIP] Fixes incorrect directory metadata Apr 3, 2016
Potherca force-pushed the issues/6/incorrect-directory-metadata branch from e4205f8 to 53e6dc1 Compare April 3, 2016 19:45

Potherca commented Apr 3, 2016

Copy link
Copy Markdown
Owner Author

Functionality should work as-is. The unit-tests need to be amended and then this can be merged.

Potherca added 19 commits April 16, 2016 20:31
- Only directories should return content, for a file an empty array should be returned.
- Adds specific check for directories
- Removes guessing by extension as this gives a different result from regular filesystem behaviour
- The original logic did not properly display all directory content for non-recursive cases when a path was provided.
- Visibility is now assumed to be visible by default
- Bug in permission comparison is fixed
- Timestamps for files are retrieved from the github api
- Timestamps for directories are calculated from retrieved files
 - Uses shorter alias for MockObject instead of FQN
 - Adds trailing comma to entries in data provider
 - Removes test that is no longer relevant
…I class

- Data for metadata is always retrieved recursively.
- Marks Api::getCreatedTimestamp() as being used by Api::getRecursiveMetadata()
- Changed mock data to match changed normalisation format from Api class
- Changed mock data to match the fact that metadata is always retrieved recursively
- Adds Api::getCreatedTimestamp() as being used by Api::getRecursiveMetadata()
- Adds mock for Commits Repository

Copy link
Copy Markdown
Owner Author

Existing unit-tests have been fixed. Code-coverage for newly added functionality needs to be added.

Potherca force-pushed the issues/6/incorrect-directory-metadata branch from d993333 to 2637017 Compare April 16, 2016 18:46
Potherca changed the title 🚧 [WIP] Fixes incorrect directory metadata Fixes incorrect directory metadata Apr 19, 2016

Copy link
Copy Markdown
Owner Author

Tests covering directory functionality have been added. Ready to merge.

Potherca merged commit 6374601 into develop Apr 19, 2016
Potherca deleted the issues/6/incorrect-directory-metadata branch April 19, 2016 11:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL