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

(Fixes #2743) Submissions: Clarify Grading Status #3204

Merged
merged 6 commits into from
Mar 5, 2019
Merged

Conversation

YuserahN
Copy link
Member

Fixes #2743

@YuserahN
Copy link
Member Author

YuserahN commented Feb 18, 2019

I had to make multiple commits to fix the issues it was having with indentation.

@lmmrssa
Copy link
Member

lmmrssa commented Feb 19, 2019

@YuserahN looks like you are making changes on github web portal. You should try to work on local copy of code. So you will be able to work on multiple files also you can test linting issue that way.

@YuserahN
Copy link
Member Author

YuserahN commented Feb 19, 2019

@lmmrssa That is what I normally do. I use gitbash to work on a local copy of the code and then push it to the web portal. But I was running into tslint errors and was not sure how to view them using git commands. So I just created the PR using the web portal and was able to view and fix the issues that way. For future reference, how do I view the linting errors using git?

@lmmrssa
Copy link
Member

lmmrssa commented Feb 19, 2019

@YuserahN you need to run npm run install-hooks. once that is installed every push will check for linting issues. And you will not be able to push if there is error. And it will also show you which lines has issue.

https://github.com/open-learning-exchange/planet/blob/master/README.md this page gives you more detail on it some of lint command that you can run on planet.

@YuserahN
Copy link
Member Author

@lmmrssa Yes, I ran npm run install-hooks a few days ago. That's why it checked for linting errors. But I wasn't sure what the issues were, until I used the web portal. I'll check out the provided link for clarification.

@YuserahN
Copy link
Member Author

YuserahN commented Feb 19, 2019

@lmmrssa Why does it still give me errors even when I am using 2 space indentation? Doesn't that just mean I am supposed to press the spacebar twice?

@lmmrssa
Copy link
Member

lmmrssa commented Feb 19, 2019

@YuserahN there are different linting rules we have set not just two whitespace rule. So please check the linting fail. That will give detail about which line and and column there is error along with which error has occured.

@@ -36,6 +36,7 @@
<mat-chip-list *ngIf="this.filter.type === 'survey' && element.status === 'complete'"><mat-chip selected il8n>complete</mat-chip></mat-chip-list>
<mat-chip-list *ngIf="element.status ==='graded'"><mat-chip selected i18n>graded</mat-chip></mat-chip-list>
<mat-chip-list *ngIf="element.status==='pending'"><mat-chip i18n>pending</mat-chip></mat-chip-list>
<mat-chip-list *ngIf="element.status==='requires grading'"><mat-chip selected color="accent" i18n>requires grading</mat-chip></mat-chip-list>
Copy link
Contributor

Choose a reason for hiding this comment

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

@YuserahN can we make status to be one word while saving.

Copy link
Member Author

Choose a reason for hiding this comment

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

@singharpita You mean, 'requires grading' should be something like, 'Submitted'?

Copy link
Contributor

@singharpita singharpita Feb 28, 2019

Choose a reason for hiding this comment

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

may be require_grading not_graded or something but not separated by space

Copy link
Member

Choose a reason for hiding this comment

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

@singharpita @YuserahN Let's leave it with a space, please.

@paulbert paulbert merged commit 98ca953 into master Mar 5, 2019
@lmmrssa lmmrssa deleted the fix_2743 branch March 7, 2019 09:02
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.

None yet

4 participants