Skip to content
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

ISSUES-557: Editing a bookmark prompts "Duplicate bookmark" on Save #566

Merged
merged 1 commit into from
Nov 14, 2021

Conversation

cathy810218
Copy link
Contributor

@cathy810218 cathy810218 commented Nov 12, 2021

Issue:
#557

Description:
Remove the duplicated bookmark check so it does not prompt the alert asking if the intention is to duplicate bookmark. If the user did not change anything in the bookmark, on Save, it should just save the unedited bookmark.

alan note for computer: fixes #557

@ualch9
Copy link
Member

ualch9 commented Nov 12, 2021

i believe editbookmarkviewcontroller is also used when creating a new bookmark, so we'd still need to check for dupes (#480). this pr would reverse d889a08, which originally fixed #480. any insights or feedback, @aaronbrethorst?

@cathy810218
Copy link
Contributor Author

cathy810218 commented Nov 12, 2021

Ah I see! That makes sense!
I guess I can then add this addMode in the if check to see if the user is adding a new bookmark / editing it.
Will wait for Aaron's feedback :)

https://github.com/OneBusAway/onebusaway-ios/blob/master/OBAKit/Bookmarks/EditBookmarkViewController.swift#L193

@aaronbrethorst
Copy link
Member

Hey @cathy810218 - good to see you on here! Check to see if addMode == true and skip the warning if it is.

@cathy810218
Copy link
Contributor Author

Hi @aaronbrethorst haha! yes it's been awhile and I am trying to re-learn ios development.
Will update the PR with the change suggested above! Thanks!

Issue:
OneBusAway#557

Description:
If user is adding a new bookmark, check if there is a duplicate; otherwise, on Save when editing a bookmark, we will not prompt a duplicate alert
@cathy810218
Copy link
Contributor Author

video-1636768733.mp4

@ualch9 ualch9 self-requested a review November 14, 2021 19:32
Copy link
Member

@ualch9 ualch9 left a comment

Choose a reason for hiding this comment

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

👍

@ualch9 ualch9 merged commit c31c213 into OneBusAway:master Nov 14, 2021
@ualch9
Copy link
Member

ualch9 commented Nov 14, 2021

thanks, @cathy810218!

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.

Editing a bookmark prompts "Duplicate bookmark"
3 participants