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

Edit ticket page #32

Merged
merged 28 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5535d46
basic edit ticket functionality
Val-Bustamante May 3, 2023
4ac1011
fixed edit and make ticket bugs
Val-Bustamante May 3, 2023
dc0c895
add owners in makeTicket functionality
Val-Bustamante May 3, 2023
751990f
fix adding owners bug
Val-Bustamante May 4, 2023
a4bd74a
add required to form fields
Val-Bustamante May 4, 2023
67659bc
change deadline to datetime object and add default values to edit tic…
Val-Bustamante May 4, 2023
05dbe71
fix default values in edit ticket form
Val-Bustamante May 4, 2023
62e272b
fix default value for deadline in edit form
Val-Bustamante May 4, 2023
1adc9b5
take out console.logs
Val-Bustamante May 4, 2023
c80ef26
fix default value for owners in edit Ticket form
Val-Bustamante May 4, 2023
2c8d1e0
merged changes in main into branch
Val-Bustamante May 4, 2023
8ba337c
fix filterResults to not add tickets twice
Val-Bustamante May 5, 2023
7c16c85
fix edit ticket form- name and description now fills in
Val-Bustamante May 5, 2023
78bfa41
fix error caused by seed file: refrence error
Val-Bustamante May 5, 2023
e114a6e
fix owners list editing rights
Val-Bustamante May 5, 2023
e17bf96
fix select bug in edit page
Val-Bustamante May 5, 2023
3c56436
add status change ability for admin in edit ticket
Val-Bustamante May 5, 2023
fd6ecba
Fixed bug where owners weren't being updated
bigguyhere May 5, 2023
782c9ef
Removed unecessary logging
bigguyhere May 5, 2023
7ce2f38
Made dates consistent with edit ticket date
bigguyhere May 5, 2023
c03275c
fix merge
Val-Bustamante May 5, 2023
2a75b2d
have default values in edit form not go away after an error occurs
Val-Bustamante May 5, 2023
a953e39
Fixed error where using same date for a deadline that is already past…
bigguyhere May 5, 2023
c696bb0
Merge branch 'edit-ticket' of https://github.com/MAPReiff/Tikit into …
bigguyhere May 5, 2023
337863a
Fixed issues with date and deleting owners
bigguyhere May 5, 2023
5588390
Removed some logging
bigguyhere May 5, 2023
051f8d7
Fixed redundant ticket getting
bigguyhere May 5, 2023
a16cd6c
Merge branch 'main' into edit-ticket
bigguyhere May 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
take out console.logs
  • Loading branch information
Val-Bustamante committed May 4, 2023
commit 1adc9b5cc651ac7cec07479eece7cda6947f7036
1 change: 0 additions & 1 deletion data/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ const update = async (


// validate category
console.log('category', category);
category = helpers.checkString(category, "Category");
if (
category != "Service Request" &&
Expand Down
4 changes: 0 additions & 4 deletions routes/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ router


}catch(e) {
console.log(e);
renderError(res, 404, 'Issue Retrieving ticket(s)');
return;
}
Expand Down Expand Up @@ -86,7 +85,6 @@ router
return;
}

console.log(ticket.owners);
try{
res.status(200).render("ticketView", {
ticketId: ticket._id,
Expand Down Expand Up @@ -224,7 +222,6 @@ router
}

}else{
console.log("in ekse");
res.status(400).render("editTicket", { title: "Edit Ticket", error: 'All fields must be filled out', _id: req.params.id, users:users});
}

Expand Down Expand Up @@ -315,7 +312,6 @@ router
ticketOwners = req.body["ticketOwners"];
}

console.log(req.body["ticketOwners"]);

let createdTicket = await ticketData.create(
ticketName,
Expand Down