Skip to content

Conversation

@liveHarshit
Copy link
Member

Fixes #1904

nikit19
nikit19 previously approved these changes Jun 6, 2019
anhanh11001
anhanh11001 previously approved these changes Jun 6, 2019
}
}

fun updateProfile(id: Long = authHolder.getId()): Single<User> {
Copy link
Member

Choose a reason for hiding this comment

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

Where is it updating the profile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Inserting in the database and updating in the profile fragment without showing progress.

Copy link
Member

@iamareebjamal iamareebjamal Jun 6, 2019

Choose a reason for hiding this comment

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

That's fetching/saving/syncing

Updating is if you send some data on server to update/

Copy link
Member Author

Choose a reason for hiding this comment

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

Not getting it. Mean retrieving information from the server and updating the same on the server.

Copy link
Member Author

Choose a reason for hiding this comment

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

come data

Data coming from API?

Copy link
Member

Choose a reason for hiding this comment

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

Updated

Copy link
Member Author

Choose a reason for hiding this comment

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

But here we are updating User name only in edit profile fragment which is already updating on server. And now syncing the data is required because profile verification is working from the server side.

Copy link
Member

Choose a reason for hiding this comment

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

Why is the name of method updateProfile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh got it. It shouldn't. It can be sync or fetch profile.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

adityastic
adityastic previously approved these changes Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetch profile from API and revalidate from database

6 participants