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

ERP: Modifications in registration form #3127

Merged
merged 21 commits into from
Nov 20, 2024
Merged

ERP: Modifications in registration form #3127

merged 21 commits into from
Nov 20, 2024

Conversation

akanshaaa19
Copy link
Member

target issue is #3105

@akanshaaa19 akanshaaa19 self-assigned this Nov 4, 2024
@akanshaaa19 akanshaaa19 changed the title Enhancement/erp ERP: Modifications in registration form Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

@github-actions github-actions bot temporarily deployed to pull request November 4, 2024 07:54 Inactive
Copy link

cypress bot commented Nov 4, 2024

Glific    Run #5390

Run Properties:  status check passed Passed #5390  •  git commit 2b416f2d2a ℹ️: Merge 432e047feb400027ebf234c8bff3d63b91d028b1 into 5974bf1510b7f8e33a4f29603f4e...
Project Glific
Branch Review enhancement/erp
Run status status check passed Passed #5390
Run duration 24m 36s
Commit git commit 2b416f2d2a ℹ️: Merge 432e047feb400027ebf234c8bff3d63b91d028b1 into 5974bf1510b7f8e33a4f29603f4e...
Committer Akansha Sakhre
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 169
View all changes introduced in this branch ↗︎

@github-actions github-actions bot temporarily deployed to pull request November 5, 2024 04:28 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 5, 2024 07:18 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 5, 2024 10:50 Inactive
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 56.19048% with 46 lines in your changes missing coverage. Please review.

Project coverage is 81.51%. Comparing base (14f5355) to head (dded038).
Report is 22 commits behind head on master.

Files with missing lines Patch % Lines
...Organization/Onboarding/Steps/SigningAuthority.tsx 40.74% 15 Missing and 1 partial ⚠️
...s/Organization/Onboarding/Steps/PaymentDetails.tsx 66.66% 8 Missing and 1 partial ⚠️
...iners/Organization/Onboarding/Steps/OrgDetails.tsx 53.33% 5 Missing and 2 partials ⚠️
.../Organization/Onboarding/Steps/PlatformDetails.tsx 46.15% 6 Missing and 1 partial ⚠️
.../Organization/Onboarding/FormLayout/FormLayout.tsx 0.00% 3 Missing and 1 partial ⚠️
.../Organization/Onboarding/Steps/Address/Address.tsx 83.33% 0 Missing and 2 partials ⚠️
...nization/Onboarding/PaymentType/PaymentOptions.tsx 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3127      +/-   ##
==========================================
- Coverage   81.72%   81.51%   -0.21%     
==========================================
  Files         328      329       +1     
  Lines       10484    10545      +61     
  Branches     2222     2234      +12     
==========================================
+ Hits         8568     8596      +28     
- Misses       1303     1334      +31     
- Partials      613      615       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@akanshaaa19 akanshaaa19 linked an issue Nov 6, 2024 that may be closed by this pull request
@github-actions github-actions bot temporarily deployed to pull request November 6, 2024 07:31 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 6, 2024 11:29 Inactive
@akanshaaa19 akanshaaa19 requested a review from kurund November 7, 2024 15:52
@github-actions github-actions bot temporarily deployed to pull request November 7, 2024 15:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 8, 2024 15:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 11, 2024 08:14 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 12, 2024 09:05 Inactive
Copy link
Contributor

@kurund kurund left a comment

Choose a reason for hiding this comment

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

@akanshaaa19

  1. We need better error handling. If someone tries to register and org does not exist the form fails silently. We should at least show some helpful message.

  2. Can you also fix failing unit tests?

  3. I am also trying to register a new org: Example NGO and the backend is failing with an error. Note that Example NGO has been added to Frappe.

Let's discuss.

src/App.tsx Outdated Show resolved Hide resolved
@akanshaaa19
Copy link
Member Author

@akanshaaa19

  1. We need better error handling. If someone tries to register and org does not exist the form fails silently. We should at least show some helpful message.
  2. Can you also fix failing unit tests?
  3. I am also trying to register a new org: Example NGO and the backend is failing with an error. Note that Example NGO has been added to Frappe.

Let's discuss.

  1. There is error handling for when org doesn't exist in erp.
image 2. done 3. yes amisha is looking into that

@github-actions github-actions bot temporarily deployed to pull request November 13, 2024 04:46 Inactive
@kurund
Copy link
Contributor

kurund commented Nov 13, 2024

@akanshaaa19

Can you update the message to: "Example organization not found". Please contact the Glific support team.

@akanshaaa19
Copy link
Member Author

akanshaaa19 commented Nov 13, 2024

@akanshaaa19

Can you update the message to: "Example organization not found". Please contact the Glific support team.

sure, @AmishaBisht will be doing that from the BE
@kurund

@AmishaBisht
Copy link
Collaborator

@akanshaaa19
Can you update the message to: "Example organization not found". Please contact the Glific support team.

sure, @AmishaBisht will be doing that from the BE @kurund

done @akanshaaa19 @kurund

@kurund
Copy link
Contributor

kurund commented Nov 17, 2024

@akanshaaa19

  1. In my opinion, we should change the below validation.
Screenshot 2024-11-17 at 19 41 15

Why is this necessary? If it's something to do with the backend then we can automatically do such conversion. Let's chat.

  1. Error on GST
Screenshot 2024-11-17 at 19 44 44

This just shows red without any message.

  1. Incorrect field label
Screenshot 2024-11-17 at 19 46 49

@kurund
Copy link
Contributor

kurund commented Nov 17, 2024

@AmishaBisht

@akanshaaa19
Can you update the message to: "Example organization not found". Please contact the Glific support team.

sure, @AmishaBisht will be doing that from the BE @kurund

done @akanshaaa19 @kurund

Looks like it's not done, we still have Customer

Screenshot 2024-11-17 at 19 59 35

@akanshaaa19 akanshaaa19 requested review from kurund and removed request for kurund November 18, 2024 04:13
@AmishaBisht
Copy link
Collaborator

@AmishaBisht

@akanshaaa19
Can you update the message to: "Example organization not found". Please contact the Glific support team.

sure, @AmishaBisht will be doing that from the BE @kurund

done @akanshaaa19 @kurund

Looks like it's not done, we still have Customer

Screenshot 2024-11-17 at 19 59 35

@kurund the error message I'm receiving is directly from ERP, and I'm passing it along as-is.

@github-actions github-actions bot temporarily deployed to pull request November 18, 2024 16:27 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 09:23 Inactive
@akanshaaa19 akanshaaa19 requested a review from kurund November 20, 2024 09:28
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 09:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 09:34 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 20, 2024 22:14 Inactive
Copy link
Contributor

@kurund kurund left a comment

Choose a reason for hiding this comment

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

Looks good.

Please note the dependency on glific/glific#3893

@kurund kurund merged commit ec8a274 into master Nov 20, 2024
9 of 13 checks passed
@kurund kurund deleted the enhancement/erp branch November 20, 2024 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERPnext: Modify the registration form
3 participants