-
Notifications
You must be signed in to change notification settings - Fork 117
Fix: Users Unable to Upload Product Images if the store is private #12824
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
Merged
pmusolino
merged 24 commits into
trunk
from
issue/12646-Users-Unable-to-Upload-Product-Images-on-iOS-App-if-the-store-is-private
Jun 3, 2024
Merged
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
95f7966
fix: spaces in ProductFormTableViewDataSource
pmusolino 07c0544
fix: space ProductFormTableViewDataSource
pmusolino c0d2eb5
feat: introduced dynamic variable isPrivateWPCOMSite in `Site` model
pmusolino 8ba173c
feat: logic to understand is a wpcom store is private, passing the in…
pmusolino fd046bf
feat: added titleTintColor into ImageAndTitleAndTextTableViewCell
pmusolino 5b059b4
- Introduced the presentURL(_:) method to handle URL presentation mod…
pmusolino 54649ae
update: ProductFormActionsFactoryTests
pmusolino cf953f6
update: tests for `isStorePublic`
pmusolino 6577162
update: ProductFormActionsFactory_ReadonlyProductTests
pmusolino e631fd7
fix: line lenght
pmusolino 5fa6f8d
feat: tests clean up
pmusolino 059db02
fix: lines should be 163 characters or less
pmusolino 60a6927
update: RELEASE-NOTES
pmusolino a3fd3bd
fix: indentation
pmusolino 445234a
fix: typo
pmusolino c2255b7
feat: removed unused StoresManager from DefaultProductFormTableViewModel
pmusolino 7223f38
Merge branch 'trunk' into issue/12646-Users-Unable-to-Upload-Product-…
pmusolino 2fac786
Merge commit 'b3894996b5a6d897fbe75c8e93efdc8a84f1fa86' into issue/12…
pmusolino a91a6fc
feat: migration of `isPublic` to -> `visibility` in the `Site` model,…
pmusolino 44036af
Set default visibility for self-hosted sites to be public
itsmeichigo b21ed6e
update: release notes
pmusolino a11871a
update: MIGRATIONS.md
pmusolino 408181a
feat: implemented test method `test_migrating_from_111_to_112_updates…
pmusolino fde919c
Merge branch 'trunk' into issue/12646-Users-Unable-to-Upload-Product-…
pmusolino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic includes only public sites. Is it possible to access images for sites with Coming soon status?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not expected, unfortunately. As you can see here C06NC969ZF0/p1715793466695389?thread_ts=1715193928.110329&cid=C06NC969ZF0 I was expecting that parsing
blog_public
limiting it to Atomic websites returnprivate = true
only if the store isprivate
and notcoming soon
orpublic
.It seems btw that the app parse
isPublic
aliasblog_public
as a boolean, while it's an integer. From my tests, the values should beprivate = -1
,coming soon = 0
,public = 1
. When it's-1
, it's automaticallyfalse
, that's why it works as expected. When it's coming soon, it's also false (0), and that's why you see the banner.I'm going to address this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itsmeichigo this is ready for another review!
Here are all the changes: a91a6fc
Below is the list of changes:
isPublic
property from theSite
model, which has been replaced withvisibility
, a property of typeSiteVisibility
.SiteVisibility
is an enum that contains the valuesprivate = -1
,coming soon = 0
,public = 1
.visibility
property.