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

SafeParseDelegate's name param being ignored on setValue function #1200

Open
4 tasks done
augustocarmo opened this issue Sep 21, 2023 · 1 comment · May be fixed by #1199
Open
4 tasks done

SafeParseDelegate's name param being ignored on setValue function #1200

augustocarmo opened this issue Sep 21, 2023 · 1 comment · May be fixed by #1199
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@augustocarmo
Copy link

augustocarmo commented Sep 21, 2023

New Issue Checklist

Issue Description

When a variable used the safeAttribute(String) function, the setValue (from the SafeParseDelegate) was not working properly when its name was different from the name param from the delegate because the name param was being ignored.

Steps to reproduce

Have a model with a variable the uses the SafeParseDelegate. Example:

var image: ParseFile? by safeAttribute(name = "profile_image")

update it and then try to read its updated value

Actual Outcome

The new value that was just set will not be returned

Expected Outcome

The new value that was just set will be returned

Environment

https://github.com/parse-community/Parse-SDK-Android/releases/tag/4.2.1

Parse Android SDK

  • SDK version: 4.2.1
  • Operating system version: Android 13 (Tiramisu)

Server

  • Parse Server version: I do not have this info / not related
  • Operating system: I do not have this info / not related
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): I do not have this info / not related

Database

  • System (MongoDB or Postgres): I do not have this info / not related
  • Database version: I do not have this info / not related
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): I do not have this info / not related
@parse-github-assistant
Copy link

parse-github-assistant bot commented Sep 21, 2023

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@augustocarmo augustocarmo linked a pull request Sep 21, 2023 that will close this issue
2 tasks
@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants