-
Notifications
You must be signed in to change notification settings - Fork 140
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
Project spec information is not saved when changing project types #1037
Comments
@fnisen we have every field in project spec template so whenever user changes the project type, it swaps the template and should empty every thing. However, if field names are same across two templates, browser may retain the old values. I have noticed one issue which in facts reports otherwise of this issue. |
Regarding that issue, it seems like if the info has been stored in local storage, it will stay there. But, if it's not already in local storage, when you switch project types, it won't be put there. What's the logic for when we do or don't save to local storage? |
We save to local storage when user leaves (refreshes the page, closes the tab or clicks on Continue button) the project details form. We remove it from local storage only after successful call to project creation api (for logged out user it happens after success reg/login and for logged in user we immediately call project creation api). We move to project details page only after clearing the local storage. |
@vikasrohit don't think we ever resolved this issue. I tested just now. If I come to create a new project (without having anything previously saved in local storage) and change types, my info is being wiped. Can you please fix this? |
Okay, I have to compare every field of project templates for copying old values to new project type. Still, I will check if there is any quick and easy solution for this. |
While working for #1102, found that it can be fixed as well. 😬 As of now it copies only 3 fields from previous filled details and they are name, description and refcode. |
@vikasrohit it's working, but why not copy other fields as well, such as Goals and Users, if they overlap? |
For copying other fields, I have to make sure that field exists in both templates. Its possible, let me try today and if it does not work or create any issue, we can handle it later as enhancement to currently implemented one. |
Done. Copied goal and users fields as well. I am validating that if these fields exists in the template of the updated project/product type. I have put this validation to ensure that we don't get spurious fields when we have a template which does not have these fields. |
@vikasrohit copying is working. I'm seeing two issues though:
|
|
|
Done. Changes are in dev. |
@vikasrohit the information copying is working well. Can you please turn off the unsaved information warnings though? I get one when I first click "Change project type" and then again when I click on a different project type from the project menu. Discussed this UX with Vic. |
@fnisen I tried today to get rid of that unsaved content warning, however, it seems bit tricky here because actually there is a content that has changed when user has entered the information for the first time. One solution is to not make project state dirty in such cases, but we don't know if user is going to click on 'Change project type' next. So, we have to make project state dirty whenever user is editing any field of the project. Now the other solution is to check which fields are exactly changed and if no other field is altered other than the ones which we retain during type change, don't show the warning. Now again to do that I have to do field by field comparison and personally I feel that it may introduce more edge cases. If we can not afford having the alert for the first time user enter the information, I will do that. |
@vikasrohit --I agree with your last point. I don't think we need the unsaved content warning b/c the content is indeed being saved. We may technically lose some elements that are not universal (such as device type), but I don't think a user would have expectations that they would be saved. I think we can get rid of the warnings for both the case of changing project type and closing the browser tab. If you agree, please go ahead and make those changes. |
Yep, Agree. We need to set right expectations of our connect managers, if they have seen the unsaved content warning in past for any project. |
Done. Changes should be in dev by EOD. |
Working well--thank you. |
Start here: http://connect.topcoder-dev.com/new-project/ while logged out
Select any project and fill out "Project Name" and "Ref code"; change project type by clicking the button in top right and selecting a new project type.
Current behavior: all previously entered info is wiped out.
Desired behavior: any common info to the two projects, such as "Name," "Notes," etc. should be carried over from one project to another.
The text was updated successfully, but these errors were encountered: