Open vikasagarwal opened 9 years ago
@vikasagarwal @naveen1601 @amit-k86
Guys,
I need your feedback/suggestions on below:
Case- Business association with user object.
Options-
Additional, We have to save the user-id along with Business object all the time (to refer who has created this business). I am assuming we need to buy out this point at any case.
We should go ahead with option 2 (storing the business ids into the users collection) instead of other way round.
Functionality implemented
Pending User table must have updated with business_id (which has recently created) in same transaction
Note- Code has committed so far on local branch- feature-businessassociationwithuser-16
I merged the code on 'feature-businessregistration-7' branch today!
I successfully updated the user table with newly generated business ID
Code has committed so far i local branch "feature-businessassociationwithuser-16"
I will merge this code to upper branch "feature-businessregistration-7" after doing code refactoring on next working day
Request you all to reset the User module indexes in database.
I removed business_id & businessname indexes (uniqueness) from my local mongoose db.
Business registration functionality has been completed!
It checks user logged-in and business association with user case (till now) before redirecting to business registration page.
Following are the outstanding issues:
@naveen1601 Please review
I committed the code & merged with feature-businessregistration-7 branch
@vikasagarwal Please review the code, I committed/merged the latest code on feature-businessregistration-7 branch.
@priyankshukla 1st acceptance criterion is being met but with imperfections. If a logged in user having business associated tries to open "localhost:3000/businessregistration", it shows "not found" on screen. This is functionally correct but the error message is wrong. Please fix.
I tried testing but failed; I cannot get the business registration page to load. Here is what I did:
Is there something amongst the steps above I should be doing differently? I'm assuming that this code is already committed and is available in the branch "feature-businessregistration7".
@priyankshukla, Please comment on priority. This is holding me from moving ahead. Thanks
Following the above comment: I tried again using, "localhost:3000/#!/businessregistration" and I was able to see the page. You can ignore the previous comment. Don't delete it though
@priyankshukla , @naveen1601. Please ensure that you write testing instructions VERY CLEARLY. This lack of clarity has cost me many hours. And, this is going to be really too difficult for @amit-k86 to test if a relatively technical person like me is having issues testing.
I dropped indexes and tested in the feature-businessregistration-7 branch. The business registration is not working. @priyankshukla Please recheck.
I logged in as a user that didn't have a business associated and I was able to open the businessregistration page. However, after filling in all the fields, when I clicked 'Register' I saw a 404 error on Post. Please look into this.
Then, I commented out the BusinessRegistrationCtrl, corresponding route, and the business-registration.html from the Users package, which resulted in:
I think all these errors are because the namespace conflict the co-existence of the duplicates of the business registration artifacts in the code base. Need to be checked thoroughly.
@priyankshukla I have cleaned up (commented out the incorrect code) and pushed into the feature-businessregistration-7 branch. Please pull that before you work on it further. These errors were actually because at some place it was using stuff from the Users package while at others, from the business package.
Who is doing QA for this issue? Shall I close this if it's qa passed?
Pending tasks from #7
Acceptance Criteria
When a user opens the business registration page: