Skip to content

[FIX] adapters/Memory: Return cloned resources#235

Merged
matz3 merged 4 commits intomasterfrom
fix-memory-adapter
Jun 4, 2020
Merged

[FIX] adapters/Memory: Return cloned resources#235
matz3 merged 4 commits intomasterfrom
fix-memory-adapter

Conversation

@matz3
Copy link
Copy Markdown
Member

@matz3 matz3 commented Apr 22, 2020

Thank you for your contribution! 🙌

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 29, 2020

Coverage Status

Coverage increased (+0.2%) to 87.35% when pulling 1dbd2a9 on fix-memory-adapter into a0205f6 on master.

@matz3 matz3 force-pushed the fix-memory-adapter branch from f1e522f to 09e6ba2 Compare April 29, 2020 15:47
@RandomByte
Copy link
Copy Markdown
Member

Missing tests

@matz3
Copy link
Copy Markdown
Member Author

matz3 commented May 5, 2020

True. I've just made sure that existing tests do not break, but we should also have new tests. I'll take care of it.

@matz3 matz3 force-pushed the fix-memory-adapter branch from 09e6ba2 to 1dbd2a9 Compare June 4, 2020 13:57
@matz3
Copy link
Copy Markdown
Member Author

matz3 commented Jun 4, 2020

Rebased + added tests

@matz3 matz3 added the bug label Jun 4, 2020
@matz3 matz3 merged commit 7bf3c6a into master Jun 4, 2020
@matz3 matz3 deleted the fix-memory-adapter branch June 4, 2020 19:52
@RandomByte
Copy link
Copy Markdown
Member

As discussed today, we should also clone on write in order to have a similar behavior as with the FS Adapter where for example a resources content can't be changed after it has been written.

On read however, we can use the createStream parameter to skip copying a resources content.

RandomByte added a commit that referenced this pull request Jul 29, 2020
RandomByte added a commit that referenced this pull request Jul 30, 2020
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
Also makes sure to pass the project reference when cloning a resource
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 25, 2025
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 26, 2025
Also makes sure to pass the project reference when cloning a resource
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 26, 2025
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 26, 2025
Also makes sure to pass the project reference when cloning a resource
d3xter666 pushed a commit to UI5/cli that referenced this pull request Sep 26, 2025
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.

3 participants