teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Instructor creating courses: auto-trim text fields

Open damithc opened this issue 2 years ago • 21 comments

v8.19.2, production

Current: When creating a course, there will be an error message if the course ID or the name has leading/trailing white spaces

image

Suggestion: Auto-trim those fields as such leading/trailing spaces are sure to be accidental rather than intended.

damithc avatar Aug 21 '22 03:08 damithc

Hello prof, I would like to please pick up this issue.

domlimm avatar Aug 21 '22 03:08 domlimm

@domlimm let's leave this to a first time contributor (unless someone from the dev team thinks it is too much for a first timer)

damithc avatar Aug 21 '22 03:08 damithc

I would like to take this on :D my first contribution to opensource

thomasengels avatar Aug 21 '22 08:08 thomasengels

I would like to take this up

Basfar avatar Aug 22 '22 09:08 Basfar

HI, I would like to take this issue up and try to fix it

Ranzeb avatar Aug 22 '22 09:08 Ranzeb

Lets make it first come first serve. @thomasengels Would you like to proceed with it?

fsgmhoward avatar Aug 22 '22 12:08 fsgmhoward

Definitely :D

thomasengels avatar Aug 22 '22 22:08 thomasengels

Is this issue resolved?

Shubhcs01 avatar Aug 24 '22 13:08 Shubhcs01

I will check the code later today. Just have been super busy with my actual developer job

thomasengels avatar Aug 24 '22 14:08 thomasengels

Hello, I would like to work this issue. Can anyone tell me which file does this "COURSES" exist ??

akhil9281 avatar Aug 28 '22 06:08 akhil9281

Hello, I would like to work this issue. Can anyone tell me which file does this "COURSES" exist ??

I couldn't find it either. I did a text search for words on the page but found numerous files containing it. Not sure what we'd edit.

seb-lex avatar Aug 28 '22 13:08 seb-lex

@thomasengels Any updates?

@akhil9281 @seb-lex Hold on first. Someone has taken it and yet to give up. It would probably not be nice to post duplicated PR on the same issue. If you would still like to investigate the issue, for the handler, I would suggest to trace down by finding the correct servlet class from this file: https://github.com/TEAMMATES/teammates/blob/675374990ed027b474f63fc40ccfd7524ff0baaf/src/main/webapp/WEB-INF/web.xml

fsgmhoward avatar Aug 29 '22 03:08 fsgmhoward

Hey is the issue still open? . I would like to take this on . my first contribution to opensource

LokeshSingh1102 avatar Sep 13 '22 08:09 LokeshSingh1102

I think it can be considered that @thomasengels gave up on this since no replies has been received.

@Basfar @Ranzeb @Shubhcs01 @akhil9281 @seb-lex Any of you would like to take a look at this? If not, will pass to @LokeshSingh1102 .

fsgmhoward avatar Sep 13 '22 12:09 fsgmhoward

Is this issue open? looking for my first contribution to open source projects.

ethanotran avatar Sep 14 '22 04:09 ethanotran

I think they are not taking this on. Should i proceed with this issue @fsgmhoward??

LokeshSingh1102 avatar Sep 15 '22 14:09 LokeshSingh1102

Someone else can take it

thomasengels avatar Sep 15 '22 15:09 thomasengels

I tried to build the back-end server, in Git Bash using both ./gradlew serverRun & and ./gradlew.bat serverRun &. The results are the same: I never got to "BUILD SUCCESSFUL". Instead, the console outputs:
<===========--> 85% EXECUTING [45m 48s] The time in the brackets keep incrementing, even if I leave the console overnight. The time gets updated but it never gets past 85%. Can you give me some pointers to move forward?

ethanotran avatar Sep 15 '22 17:09 ethanotran

@ethanotran hello, this is the intended behavior. Could refer to #11889.

domlimm avatar Sep 15 '22 17:09 domlimm

I'm trying to fix this issue. I would like to first replicate the issue, I believe I need instructor privilege in order to create a course. Since I'm not an instructor, what can I do to gain sufficient privilege for issue replication?

ethanotran avatar Sep 15 '22 19:09 ethanotran

@LokeshSingh1102 Sure. Please go ahead.

fsgmhoward avatar Sep 16 '22 01:09 fsgmhoward

Can you assign it to me?

ShubhraSuman avatar Oct 06 '22 18:10 ShubhraSuman

@fsgmhoward can i work with this issue?

tusharrajpoot avatar Oct 08 '22 19:10 tusharrajpoot

I would like to work on this issue @fsgmhoward

KillerEnigma avatar Oct 15 '22 05:10 KillerEnigma

Hi @ShubhraSuman there is no open PR for this issue, would you like to work on it?

ypinhsuan avatar Oct 16 '22 07:10 ypinhsuan

Sure @ypinhsuan

ShubhraSuman avatar Oct 16 '22 07:10 ShubhraSuman

@damithc @fsgmhoward may I work on this issue? I can do it immediately.

My idea of doing it is to let sanitizeForSaving() in src/main/java/teammates/common/datatransfer/attributes/CourseAttributes.java to trim the course name. This can be done by adding only one line of code. Also, trimming invalid names into valid should be the job of sanitizeForSaving() and this approach is aligned with the origianl structure of the code.

I are doing a group assignment at uni that has to work on an issue from open-source software. We hope to contribute as much as possible as the due date is very soon. I will greatly appreciate it if you allow me to work on this issue.

glowing-sea avatar Oct 18 '22 00:10 glowing-sea

@fsgmhoward @ypinhsuan Sorry accidentally open a PR. I think I should contact you and get your approval before working on this issue. If you allow me to do this issue, I will open a pull request again.

glowing-sea avatar Oct 18 '22 02:10 glowing-sea

Hi @Haoting-Chen , the person taking this issue previously has not given up. Please seek other issues to work on. Thank you so much.

fsgmhoward avatar Oct 18 '22 05:10 fsgmhoward

@ShubhraSuman Sorry for bothering you. I am currently working on a group assignment at uni that we have to solve as many issues as we can for Teammates. The assignment is due next week. If you haven't started yet, would you like to hand over this issue to me? I have figured out how to do it and can start immediately.

glowing-sea avatar Oct 18 '22 05:10 glowing-sea