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

adding export button #376

Closed
wants to merge 8 commits into from
Closed

Conversation

parteekcoder
Copy link

issue #366

hey @llaske I am making functionality of exporting assignment , yet I am making this when it is completed I will inform you

@parteekcoder
Copy link
Author

@llaske please review this PR , I know there are some changes required to include necessary fields in the CSV file

I am open to new suggestions and Ideas , your suggestions will be admired

Please tell me if there is anything you would like to update , I have tested this on my system

Copy link
Collaborator

@NikhilM98 NikhilM98 left a comment

Choose a reason for hiding this comment

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

I believe you have misunderstood the requirements of the issue. The requirement is to export the deliveries, not the list of assignments.

Comment on lines +9 to +10
const validateAssignment=(assignment)=>{
const assign={
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sugarizer Server code follows ES5 syntax, so it better to avoid ES6 syntax.

common = require('../../helper/common');

module.exports = function exportCSV(req, res) {
var assignment = [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

The variable name conflicts with the other variables in the same function, for example assignment on line 9.

Copy link
Author

Choose a reason for hiding this comment

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

no that will work because of scope in javascript

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, it will work, but it's better to have a different name for clarity, for example assignments in this case.

Comment on lines +16 to +17
stroke:"",
fill:"",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The fill and stroke information is not relevant to delivery.

Copy link
Author

Choose a reason for hiding this comment

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

sure

.get(common.getAPIUrl(req) + 'api/v1/assignments')
.set(common.getHeaders(req))
.end(function (error, response) {
// console.log(response.body);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove unnecessary comments

Copy link
Author

Choose a reason for hiding this comment

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

yeah I will create a request to assugnment delivers as you describe me

async.series([
function(callback) {
superagent
.get(common.getAPIUrl(req) + 'api/v1/assignments')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think the issue is about exporting Assignments. The requirement is for exporting the Deliveries.

Comment on lines -130 to +182
<% } %>
<% } %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove unnecessary whitespace.

Comment on lines +203 to +205

//function for exporting assigment

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove unnecessary comments.

@parteekcoder
Copy link
Author

thanks @NikhilM98 for resolving my queries

@parteekcoder
Copy link
Author

@NikhilM98 I am creating an assignment with a teacher account

image
but I am not getting any activity option

@NikhilM98
Copy link
Collaborator

You can log into Sugarizer app with a teacher account and create a journal entry to make it visible here.

@parteekcoder
Copy link
Author

You can log into Sugarizer app with a teacher account and create a journal entry to make it visible here.

but that page is not opeining because the students don't have any journals, how a student can opt a journal

@NikhilM98
Copy link
Collaborator

Open localhost:8080 to access the Sugarizer Client.

@parteekcoder
Copy link
Author

image

but here a student will opt an journal

@NikhilM98
Copy link
Collaborator

Create a teacher account from Sugarizer Server dashboard, and log into the Sugarizer Client with the teacher account.

@parteekcoder
Copy link
Author

yeah done , but I am not able to give journal to student or creating them, So that they will show me while adding assignemnt

@parteekcoder
Copy link
Author

image

@NikhilM98
Copy link
Collaborator

Looks like your Teacher's journal is empty. Try using Sugarizer Activities, it will create Journal entries. You can assign those activities as an Assignment.

@parteekcoder
Copy link
Author

how , can you please give some steps to do that

@parteekcoder
Copy link
Author

As there is no Docs so it is difficult to do

@parteekcoder
Copy link
Author

journals are showing
image

@parteekcoder
Copy link
Author

but still while creating asssignment that activity option is still not showing

@parteekcoder
Copy link
Author

I want to test some things so I need to create some assignments @NikhilM98 please help

@NikhilM98
Copy link
Collaborator

Now try to log into Sugarizer Server dashboard with the teacher's account and try to create an assignment.

@parteekcoder
Copy link
Author

Yeah doing that but still activities are not showing while creating assignment

@NikhilM98
Copy link
Collaborator

I just tested it with a fresh Sugarizer Server instance. It's working:
image

You must be doing something wrong.

@NikhilM98
Copy link
Collaborator

journals are showing image

Btw these journal entries do not belong to the user you have logged in with.

@NikhilM98
Copy link
Collaborator

As there is no Docs so it is difficult to do

We expect potential contributors to learn to use the application by experimenting with the application. While we understand that this approach may be challenging, it is also the best way to gain a thorough understanding of the application's functionality and how it is used in practice.

We do not want to provide a step-by-step documentation for the developers as we believe that the most valuable contributions come from those who have taken the time to really explore and understand the application on their own. We encourage you to spend some time using the application, exploring its various features, and familiarizing yourself with its functionality. This will not only help you gain a better understanding of the application, but it will also help you identify areas where you can make valuable contributions.

@parteekcoder
Copy link
Author

As there is no Docs so it is difficult to do

We expect potential contributors to learn to use the application by experimenting with the application. While we understand that this approach may be challenging, it is also the best way to gain a thorough understanding of the application's functionality and how it is used in practice.

We do not want to provide a step-by-step documentation for the developers as we believe that the most valuable contributions come from those who have taken the time to really explore and understand the application on their own. We encourage you to spend some time using the application, exploring its various features, and familiarizing yourself with its functionality. This will not only help you gain a better understanding of the application, but it will also help you identify areas where you can make valuable contributions.

Right @NikhilM98 I agree with your statement that the best contributor is the one who explore the things himself/herself, But the thing is docs help the contributors to initially setup and run all the things and the rest of the things they can explore

@NikhilM98
Copy link
Collaborator

Docs for the initial deployment of Sugarizer Server are available here. PRs are welcome if you believe that the docs can be improved or the scope of the docs can be extend.

@parteekcoder
Copy link
Author

@NikhilM98 I created my first assignment
image

@NikhilM98
Copy link
Collaborator

@parteekcoder can this PR be closed?

@parteekcoder
Copy link
Author

yes , continued at #385

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.

2 participants