Skip to content

Iterating items in StorageFolder - #2774

Merged
jeromelaban merged 7 commits into
unoplatform:masterfrom
pkar70:StorFile-iterating
Oct 28, 2020
Merged

jeromelaban merged 7 commits into
unoplatform:masterfrom
pkar70:StorFile-iterating

Conversation

@pkar70

@pkar70 pkar70 commented Mar 11, 2020

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #1187 (partly)

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

No support for iterating items in StorageFolder

What is the new behavior?

Implemented: GetFilesAsync(), GetFoldersAsync(), GetItemsAsync()

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Mar 11, 2020 •

Copy link
Copy Markdown

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR. Could you add runtime tests ?

Comment thread doc/ReleaseNotes/_ReleaseNotes.md Resolved
@jeromelaban

Copy link
Copy Markdown
Member

You mentioned in https://github.com/unoplatform/uno-private/issues/1439 that this PR is still relevant. You'll need to remove the ReleaseNotes modification, and add runtime test to validate the behavior. Thanks!

@CLAassistant

CLAassistant commented Jun 10, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@pkar70
pkar70 requested a review from a team August 7, 2020 22:11
@pkar70
pkar70 force-pushed the StorFile-iterating branch from 61e281c to d683989 Compare August 8, 2020 12:04
@pkar70

pkar70 commented Aug 8, 2020

Copy link
Copy Markdown
Contributor Author

Failed outside this PR.

@pashmak73 pashmak73 mentioned this pull request Aug 25, 2020
@pkar70

pkar70 commented Aug 26, 2020

Copy link
Copy Markdown
Contributor Author

"You'll need to remove the ReleaseNotes modification" - done.
"add runtime test to validate the behavior" - something like creating known files, than checking if they are iterated?

@MartinZikmund

Copy link
Copy Markdown
Member

@pkar70 yes ideally that 👍. Generate the file name randomly and delete in finally block afterwards

@pkar70
pkar70 force-pushed the StorFile-iterating branch from 9911b65 to eb0b887 Compare October 9, 2020 14:48
@pkar70

pkar70 commented Oct 9, 2020

Copy link
Copy Markdown
Contributor Author

Test added.

@unoplatform unoplatform deleted a comment from pkar70 Oct 9, 2020
@pkar70
pkar70 force-pushed the StorFile-iterating branch from d8105c6 to 0c84dda Compare October 19, 2020 20:27
@unoplatform unoplatform deleted a comment from pkar70 Oct 19, 2020
@pkar70

pkar70 commented Oct 25, 2020

Copy link
Copy Markdown
Contributor Author

This builds OK, I didn't change anything, and now it doesn't build, with some errors that I think are unrelated to this PR. Can build be restarted?

@unoplatform unoplatform deleted a comment from pkar70 Oct 26, 2020
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
@unoplatform unoplatform deleted a comment from pkar70 Oct 27, 2020

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved
Comment thread src/Uno.UWP/Storage/StorageFolder.cs Resolved

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@jeromelaban
jeromelaban merged commit 35890b2 into unoplatform:master Oct 28, 2020
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.

4 participants