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

[USH-1510] Use only parameters for posts in web client #1418

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

Ifycode
Copy link
Member

@Ifycode Ifycode commented Nov 4, 2024

No description provided.

Copy link

linear bot commented Nov 4, 2024

@Ifycode Ifycode marked this pull request as draft November 4, 2024 10:42
@Ifycode Ifycode marked this pull request as ready for review November 13, 2024 09:41
Copy link
Contributor

@Angamanga Angamanga left a comment

Choose a reason for hiding this comment

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

There is one silly side-effect on this change, when trying to publish a post from the post-list, the post_content isn't there so the code cannot properly check that all required tasks are completed. It is happening here:https://github.com/ushahidi/platform-client-mzima/blob/development/apps/web-mzima-client/src/app/post/post-head/post-head.component.ts#L86. I think that in the cases when a user is publishing from the feed-view, we would actually need to get the full post. Maybe you can add a check to see if the full post is there, and if not, get it and do the check? It only applies to when the user clicks on "Publish" in the feed-view, not in detailed view.

// Brute force extraction of the first image found in a post.
// Ugly approach, but it stops as soon as it finds an image.
// TODO: Optimise
if (this.post.post_content) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hehe, finally we got rid of "TODO: Optimise" 🤗

@Ifycode
Copy link
Member Author

Ifycode commented Nov 14, 2024

I've added the change, do this work? @Angamanga

@Ifycode Ifycode added Web Client Code submitted for the Web Client Q4 - sprint labels Nov 15, 2024
@Ifycode
Copy link
Member Author

Ifycode commented Nov 15, 2024

This is ready for review too @Angamanga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q4 - sprint Web Client Code submitted for the Web Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants