-
Notifications
You must be signed in to change notification settings - Fork 136
fixes issue 2177 #3035
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
fixes issue 2177 #3035
Conversation
maxceem
left a comment
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.
Thanks @sumitdaga
Generally, the approach looks good. Functionality for posts on the Dashboard also works good except a small issue listed bellow. Post reloading for phases need some fixes and improvements.
-
When I click notification for non-yet-loaded comment, posts on dashboard are reloaded good. But not always scrolling works. I guess what can be tried is to put bigger timeout for scrolling, maybe
100instead of0. Maybe you have any other idea? -
When we create a post on the phase and phase already exists we should reload all the phases because it's a lot of requests, and we can reload posts for one phase.
Here is how we can load posts for one phase and members for it's post https://github.com/appirio-tech/connect-app/blob/dev/src/projects/actions/projectDashboard.js#L49-L64. Note, it could be needed if some new member created that post. I guess this part of the code could packed in one method and reused in both places.
-
In case when a phase has been created and we posted there we should reload all the phases. Currently, looks like it doesn't work, see demo video https://monosnap.com/file/4jMU7aBoo1h3mmjkodzCoEwqlYqem3
Also, the current implementation looks not complete. As this logic https://github.com/appirio-tech/connect-app/blob/dev/src/projects/actions/projectDashboard.js#L47-L69 also loads members for posts. So if we create a post with a new member it wouldn't be loaded in current implementation.
Thanks.
|
@sumitdaga how is it going? When do you think you would be able to complete this issue? |
|
@maxceem. |
|
@sumitdaga oh, ok. Which one of the 3 items above is the most complicated? |
|
@maxceem there are primarily 3 more things that needs to be addressed addition to the above
and then there are other smaller things to check (and some which we may have missed still) .... and it takes some amount of time to verify a fix! |
|
I see, thanks for the detailed update @sumitdaga. |
|
@maxceem |
|
@maxceem i am almost done! |
|
@sumitdaga works good to me at the moment https://monosnap.com/file/c23EAxyTylOPUh6q2vPapqFGFFbwZ2 |
|
@maxceem not to an existing phase |
|
@sumitdaga yeah, that's strange. Checking... |
|
@sumitdaga works in this project for me https://connect.topcoder-dev.com/projects/8048/plan. Could you please check. |
|
@maxceem i am unable to push changes |
|
@sumitdaga sent you invitation again. Though it's strange, as you push changes to your fork, but just in case. |
|
@maxceem ok so about the fix: there are many changes, so goes without saying you will need to check it carefully so that i have not missed something or created some new bug ... and of course if the fix works and all is ok please consider the prize on this one :) |
|
@sumitdaga thank you for the details. I'll check it out tomorrow, regarding all your points :-) |
|
Posting it here just not to forget some case:
|
|
and check all the above from these pages |
|
Here is my testing:
IssueWhen I open the specification tab on any other phase it automatically scrolls to the phase I've clicked in the notification before https://monosnap.com/file/fchpLZhvGbIDXRlN7wc2NoVt0tZvxa This is an existent issue, I know you attempted to fix it, could you please check? |
|
@maxceem
the above issue is happening because the i am not sure how to fix this as specSection is used at multiple other places ...do you have a suggestion ? |
@maxceem oh darn , you are right ...i have fixed all issues i think ! thanks |
|
Something is with my internet, so I cannot upload video. But I did the same actions as before.
|
|
@maxceem |
|
@sumitdaga Implementation for loading phases looks like working good! Test results
Issues
|
|
@maxceem |
|
@maxceem @sumitdaga we have similar usage of |
|
@vikasrohit @maxceem |
|
@sumitdaga most cases are fixed now, only two left. Test results
I was testing with the latest commits: |
@vikasrohit it looks like we have to update for every component which has
Good idea. Though as I see from the Also, as per discussion in a related issue (as not only us come across with it) the other way of implementing |
|
@maxceem |
| window.addEventListener('beforeunload', this.onLeave) | ||
| } | ||
|
|
||
| componentWillMount() { |
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.
@sumitdaga can wee keep here componentWillMount? As we use init to build comments inside Feed, and I guess it's better to keep it as before. So comments are rendered maybe faster.
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.
@maxceem
oh i did not intend to remove it, i was testing something and forgot to add it back ...should i put the init function inside componentWillMount (like before) or componentDidMount (which is also present)
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.
@sumitdaga please, keep it as it was before.
|
Thanks @sumitdaga I've tested and everything works good. Test results
EnhancementThe only thing I see that the way with passing location and calling So we can conclude this PR at this moment. But instead of merging it to DEV, we would keep it in a separate branch and try to achieve the same with a custom |
|
Note, this PR would be merged to |
maxceem
left a comment
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 PR works good. Though before merging it to DEV we would make some code improvements, as the current version is prone to bugs.


No description provided.