-
-
Notifications
You must be signed in to change notification settings - Fork 497
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 #1378 Update Talawa to give a meaningful message if the URL isn't available. #1380
Fixes #1378 Update Talawa to give a meaningful message if the URL isn't available. #1380
Conversation
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.
Congratulations on making your first PR! 🎊 If you haven't already, check out our Contributing Guidelines and PR Reporting Guidelines to ensure that you are following our guidelines for contributing and creating PR.
…age if the URL isn't available.
c22d593
to
fc5bd1a
Compare
Please fix the failing tests |
@Ayush0Chaudhary actually, I can't understand the reason for adding 2-sec delay to the snackBar. We already have a |
It only verify whether the url is working with http.get(uri) but https//:www.youtube.com will also clear this check But in this implementation we check whether the data received is appropriate for us. And 2 sec delay is because we cannot prompt snackbar if the widgets are still building |
@SiddheshKukade I added these lines back Now the snackbar will be shown only once if the url added doesn't provide the correct data. Which otherwise would've just shown the loading icon My goal here was to tell user that his url will not work. And if timer wasn't added and showSnackBar was set to true |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #1380 +/- ##
===========================================
+ Coverage 68.38% 68.50% +0.11%
===========================================
Files 144 146 +2
Lines 7164 7207 +43
===========================================
+ Hits 4899 4937 +38
- Misses 2265 2270 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@Ayush0Chaudhary Yes I got it thanks, changes are looking fine to me now. |
@palisadoes @SiddheshKukade Please ask @Sagar2366 for 1 more review? |
@Ayush0Chaudhary I have already reviewed your changes. |
but it is showing At least 2 approving reviews are required by reviewers with write access for merge |
@Ayush0Chaudhary The code testing coverage has been reduced by -2.51% with this change. Please add the necessary tests to make sure that the coverage is maintained. |
will do asap! |
@Ayush0Chaudhary Is there a standardized function/class for all error messages? It would greatly help with creating a standardized look and feel for the app. Then we could create an issue to migrate all errors to the new methodology. Is there a good best practice that we could follow for this? |
@palisadoes Sir, we can create a separate custom widget for it and we can name that as |
OK, @Ayush0Chaudhary please add this to this PR then we can open another issue to convert all our errors to use the new widget. |
OK @palisadoes sir, I'll add this Widget |
also we can specify custom error messages like below, just example
|
Remember that we need to ensure that the errors work in the selected language that user selects. The widget and supporting code / data will to be adjusted to support this. |
@SiddheshKukade @palisadoes their already exist a function to show snack bar talawa/lib/services/navigation_service.dart Lines 52 to 63 in 46cf4ef
Can you explain what you meant in
Did you want something like this? |
@noman2002 I did as you asked. |
@Ayush0Chaudhary code coverage has gone down to 68.0 which is less than the minimum coverage required to merge a pr. Please try achieve 100% coverage for the file you have modified. |
@noman2002 code coverage is 68.7 % now |
72dee16
to
01432d1
Compare
@palisadoes @noman2002 @TheHazeEffect @SiddheshKukade please review the PR |
@Ayush0Chaudhary As the codecov is not getting triggered please attach a screenshot of code coverage of the files you have made changes, to get this PR approved. It will be easier for mentors to review. |
@noman2002 I added the code coverage of the test I added. |
@Ayush0Chaudhary Please remove the firebase api files it includes your api keys. Rest everything looks good to me. |
@noman2002 done!! can we merge it now?? |
Do we need to change anything in the installation process? |
no, the process remains the same |
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.
@palisadoes Looks good to me. Please have a look at it as there are various files changed.
What kind of change does this PR introduce?
Issue Number:
Fixes #1378
and kind of fixes #1370
Did you add tests for your changes?
Yes
Snapshots/Videos:
Screenrecording_20221231_035010.mp4
If relevant, did you update the documentation?
Didn't update the docs.
Summary
In this PR if this
talawa/lib/widgets/organization_list.dart
Line 34 in 46cf4ef
If statement
is true it gives a snackbar after 2sec It will prompt a snackbar. I have to add 2 seconds delay because we cannot prompt a snackbar while the widgets are building. Fix#1368Does this PR introduce a breaking change?
NO
Other information
None
Have you read the contributing guide?
Yes