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

Admin profile validation #1047

Merged

Conversation

ayushpatel1248
Copy link
Contributor

Issue that this pull request solves

  • previously if we try ot update the admin profile username due to validation admin was not able to enter the numbers or _ in there validation

  • but now i have changed the validation and now admin can use number as well as _ in there username

Closes: #1042

Proposed changes

  • in this i have changed the validation by changing the username schema where i have changed the regular expression for the username so that now admin can include numbers as well as the special _ type symbols in there username

Types of changes

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (Documentation content changed)
  • Other (please describe):

Checklist

Put an x in the boxes that apply

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • My changes does not break the current system and it passes all the current test cases.

Screenshots

Screen.Recording.2024-06-13.at.12.28.42.AM.mov

…ubmission

input should not get cleared if validaion is not matched and also question pop up should be closed if question is uploaded successfully

fix issue HITK-TECH-Community#977
in admin profile username was not letting enter username which contain numbers or underscore and was giving the validation error now it is fixed now it take both underscore and number also

fixes HITK-TECH-Community#1042
@auto-assign auto-assign bot requested a review from Kajol-Kumari June 12, 2024 19:16
Copy link
Member

@Kajol-Kumari Kajol-Kumari left a comment

Choose a reason for hiding this comment

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

@ayushpatel1248 there are so many unnecessary change in this file that its hard to follow, please clean it up and only keep the required changes

@@ -109,6 +114,7 @@ function Ques(props) {
});
setFormErrors({});
setCheckedState(new Array(Tags.length).fill(false));
setButtonPressed(false);
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change again coming?

@ayushpatel1248
Copy link
Contributor Author

@Kajol-Kumari removed the unnecessary changes and kept only required changes , please check it out

@Kajol-Kumari
Copy link
Member

Kajol-Kumari commented Jun 16, 2024

@ayushpatel1248 i don' see the second part of the issue in this pr - #1042 (comment)

The username should come in profile detail like explained in the referred comment

@ayushpatel1248
Copy link
Contributor Author

@Kajol-Kumari i have updated the code now validation of username is also perfect and also username is placed in profile
Screenshot 2024-06-17 at 11 49 08 PM

@Kajol-Kumari Kajol-Kumari added level1 Wiki or Major Documentation work. gssoc GSSoC'24 Label labels Jun 20, 2024
@Kajol-Kumari Kajol-Kumari merged commit 77297ce into HITK-TECH-Community:main Jun 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc GSSoC'24 Label level1 Wiki or Major Documentation work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

admin profile username validation
2 participants