teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Copying feedback session: Name for copied session should not be whitespace

Open domlimm opened this issue 2 years ago • 47 comments

Steps to reproduce

  1. Head to Sessions page.
  2. On any course, click on Copy.
  3. You should see this that the Name for copied session* has the same name as the Session you clicked Copy on. Now, clear the text input and this is what you will get below. image

Now, let's try to add a whitespace. Validation passes i.e., There is a value for the copied session's name and it is a whitespace.

image

Expected behaviour

Whitespace should not be allowed for the copied session's name. Input validation should not allow whitespaces.

Actual behaviour

Converse of the above expected behaviour, i.e., Currently, whitespace as name is allowed and this happens after clicking on Copy: image

This is validated on the client side. However, we should validate on the form first.

Additional info

Motivation for this issue from a PR: https://github.com/TEAMMATES/teammates/pull/12670#issuecomment-1868207324

Proposed Solution:

  1. You may look at this link on form validation: https://www.javatpoint.com/angular-form-validation-no-whitespace-allowed
  2. Refer to this file in the codebase: src\web\app\pages-help\session-links-recovery\session-links-recovery-page.component.ts, there is an example on how validation is done L39, and you may use the above link in Point 1 to help you too. And this is the page (http://localhost:4200/web/front/help/session-links-recovery): image To get to the above page, once you're logged in, in the navbar, click on Help -> Recover Session Links -> Hit on Submit without any input.

Let us know if you have any question.

domlimm avatar Dec 24 '23 03:12 domlimm

Good First Issue - Notes for Contributors This issue is for first-time contributors only. If you are new to TEAMMATES, feel free to submit a PR for this issue.

Please note that we allow only one good first issue per contributor. If you have already made a prior contribution to TEAMMATES, you may wish to take a look at issues with the help wanted tag instead.

We do not assign issues to contributors. If you would like to pick up this issue, do post a comment below to express your interest and check if there is anyone else who is already working on the issue. We will do our best to reply and give you the go-ahead, but if we don't, feel free to submit a PR as long as there is no one else working on it.

To get started, do read through our contributing guidelines carefully, and set up a development environment on your local machine before making a PR.

If you need any clarifications on our developer guide, or are facing issues that are not found in our troubleshooting guide, please post a message in our discussion forum.

github-actions[bot] avatar Dec 24 '23 03:12 github-actions[bot]

I would like to work on this issue. Can i go ahead?

dhanushtheijas08 avatar Dec 24 '23 04:12 dhanushtheijas08

@dhanushtheijas08 Sure thing. Feel free to submit a PR for this issue 👍🏻

domlimm avatar Dec 24 '23 04:12 domlimm

@domlimm Hi , I am beginner, could I contribute for this issue?

rahulpro2001 avatar Dec 25 '23 05:12 rahulpro2001

@rahulpro2001 Hello, please allow @dhanushtheijas08 to work on it first as he has expressed in interest. Feel free to look at other issues tagged with good first issue for the time being!

domlimm avatar Dec 25 '23 05:12 domlimm

@domlimm okk

rahulpro2001 avatar Dec 25 '23 05:12 rahulpro2001

can i work on these issue please, these is my first open source contribution !

ArunErram avatar Dec 27 '23 18:12 ArunErram

Hi Could any one help me setting up project in my local system, I am getting error at build.properties as null pointer exception. Thanks

pavanganguru avatar Dec 28 '23 04:12 pavanganguru

can i work on these issue please, these is my first open source contribution !

hi @ArunErram please allow @dhanushtheijas08 to work on it first as he has expressed interest for this issue

cedricongjh avatar Dec 28 '23 07:12 cedricongjh

hi @pavanganguru, do open a help request here: https://github.com/TEAMMATES/teammates/discussions, it would be good to provide screenshots or more details about the error you're facing as well

cedricongjh avatar Dec 28 '23 07:12 cedricongjh

I see that this issue is still open, can I work on it? Also, how can I become a contributor for this repo?

IvoHarsani avatar Jan 07 '24 15:01 IvoHarsani

Posso contribuir com a issue ?

michaelviveiros avatar Jan 08 '24 21:01 michaelviveiros

Hey! is the issue resolved? If it is still open , i would like to contribute to this issue! Please let me know if I can

SArora12 avatar Jan 09 '24 16:01 SArora12

@dhanushtheijas08 Hello, is there any update on this issue? Else, I will ping the next person to attempt it. Thanks!

domlimm avatar Jan 13 '24 09:01 domlimm

Hey.I still see this issue open and showing not resolved in my local.Can I take it up?

Afreen97 avatar Jan 17 '24 06:01 Afreen97

@rahulpro2001 Please feel free to submit a PR for this if you're still interested. Else, I will pass it onto the next person. Thank you!

@Afreen97 Let's go down the queue. Feel free to look at other issues tagged good first issue for the time being!

domlimm avatar Jan 17 '24 14:01 domlimm

hey @domlimm, i'm also interested in working on this. please add me to the queue.

sanjai0py avatar Jan 19 '24 06:01 sanjai0py

@ArunErram @IvoHarsani @michaelviveiros Do let me know if any of you wants to take up this issue.

domlimm avatar Jan 20 '24 01:01 domlimm

@ArunErram @IvoHarsani @michaelviveiros Do let me know if any of you wants to take up this issue.

@domlimm If it's available I would like it.

michaelviveiros avatar Jan 20 '24 04:01 michaelviveiros

@michaelviveiros Hey Michael, feel free to submit a PR for it! Thanks!

domlimm avatar Jan 20 '24 04:01 domlimm

Hello I am a beginner and would like to work on this issue.

ritsam avatar Jan 24 '24 21:01 ritsam

@ritsam Hello, lets give @michaelviveiros some time to work on this. Michael do let us know if you're not working on it anymore.

@ritsam in the meantime, you may look for other good first issue to work on.

domlimm avatar Jan 24 '24 23:01 domlimm

i think, i missed the oppurtunity , do i have the chance now to work on it @domlimm ?

ArunErram avatar Jan 27 '24 05:01 ArunErram

hi @michaelviveiros, do let us know within 2 days if you're still working on this issue, else we'll let @ArunErram work on it

cedricongjh avatar Jan 27 '24 16:01 cedricongjh

ya @michaelviveiros update please ASAP , Thanks !

ArunErram avatar Jan 29 '24 18:01 ArunErram

Hi @ArunErram, since @michaelviveiros hasn't replied, please feel free to submit a PR for this issue. Thanks for your patience!

weiquu avatar Jan 30 '24 01:01 weiquu

@weiquu sure i'm on it

ArunErram avatar Jan 31 '24 02:01 ArunErram

@weiquu @domlimm i have started working on it . But while i am trying to login as student or instructor the login page is not getting displayed . loginsnap

ArunErram avatar Jan 31 '24 03:01 ArunErram

and from where can i get the test credentials to login and test the expected behaviour after making the changes?

ArunErram avatar Jan 31 '24 06:01 ArunErram

and from where can i get the test credentials to login and test the expected behaviour after making the changes?

Hi @ArunErram, do refer to https://teammates.github.io/teammates/development.html#logging-in-to-a-teammates-instance for logging in to the local dev environment

cedricongjh avatar Jan 31 '24 10:01 cedricongjh