Skip to content

Commit

Permalink
v1.10.1 build updates
Browse files Browse the repository at this point in the history
- Fixed API issues
- Updated release notes and readme files
- Updated dummy database files
- dumped composer to with --no-dev to ignore dev dependency

- ignored tests directory and phpunit.xml while downloading compressed archives of the repo
  • Loading branch information
Manish Verma authored and Manish Verma committed Sep 19, 2018
1 parent 97e45c8 commit 00a7111
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
*.less linguist-vendored
*.js linguist-vendored
*.html linguist-vendored
tests/ export-ignore
phpunit.xml export-ignore

10 changes: 5 additions & 5 deletions app/Api/v1/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function unassignedTickets()
->leftJoin('ticket_attachment', 'ticket_attachment.thread_id', '=', 'ticket_thread.id');
if ($user->role == 'agent') {
$id = $user->id;
$dept = \DB::table('department_assign_agents')->where('agent_id', '=', $id)->pluck('department_id')->toArray();
$dept[] = $user->primary_dpt;
$unassigned = $unassigned->where(function ($query) use ($dept, $id) {
$query->whereIn('tickets.dept_id', $dept)
->orWhere('assigned_to', '=', $id);
Expand Down Expand Up @@ -412,7 +412,7 @@ public function closeTickets()
->leftJoin('ticket_attachment', 'ticket_attachment.thread_id', '=', 'ticket_thread.id');
if ($user->role == 'agent') {
$id = $user->id;
$dept = \DB::table('department_assign_agents')->where('agent_id', '=', $id)->pluck('department_id')->toArray();
$dept[] = $user->primary_dpt;
$result = $result->where(function ($query) use ($dept, $id) {
$query->whereIn('tickets.dept_id', $dept)
->orWhere('assigned_to', '=', $id);
Expand Down Expand Up @@ -977,7 +977,7 @@ public function inbox()
->where('ticket_status.name', 'Open');
if ($user->role == 'agent') {
$id = $user->id;
$dept = \DB::table('department_assign_agents')->where('agent_id', '=', $id)->pluck('department_id')->toArray();
$dept[] = $user->primary_dpt;
$inbox = $inbox->where(function ($query) use ($dept, $id) {
$query->whereIn('tickets.dept_id', $dept)
->orWhere('assigned_to', '=', $id);
Expand Down Expand Up @@ -1061,7 +1061,7 @@ public function getTrash()
->leftJoin('ticket_attachment', 'ticket_attachment.thread_id', '=', 'ticket_thread.id');
if ($user->role == 'agent') {
$id = $user->id;
$dept = \DB::table('department_assign_agents')->where('agent_id', '=', $id)->pluck('department_id')->toArray();
$dept[] = $user->primary_dpt;
$trash = $trash->where(function ($query) use ($dept, $id) {
$query->whereIn('tickets.dept_id', $dept)
->orWhere('assigned_to', '=', $id);
Expand Down Expand Up @@ -1432,7 +1432,7 @@ public function dependency()
$tickets = \DB::table('tickets');
if ($user->role == 'agent') {
$id = $user->id;
$dept = DepartmentAssignAgents::where('agent_id', '=', $id)->pluck('department_id')->toArray();
$dept[] = $user->primary_dpt;
$tickets = $tickets->whereIn('tickets.dept_id', $dept)->orWhere('assigned_to', '=', $user->id);
}
$department = $this->department->select('name', 'id')->get()->toArray();
Expand Down
Binary file modified public/downloads/en.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ As we mentioned in last release that the application is now compatible with PHP7
- Integrated slack channel for travis build notifications
- Updated Bugsnag API key

Error Reporting
--------------------------
Faveo uses [Bugsnag](https://www.bugsnag.com/) to monitor application stability in production enviroment. It helps us to provide bug fixes and feature updates after analyzing the logs and crash reports for the application. **If you are customizing the application under development environment, we request you to disable this error reporting.** It will allow us to ignore the errors occurred during your development cycle and we can focus more on the exceptions/bugs occuring in live system of other users of Faveo community. It can be easily disabled from "Error logs and debugging" option in admin panel or by updating your app environment to development in `.env`.

You can still report the issues on our [Github Issue page](https://github.com/ladybirdweb/faveo-helpdesk/issues) by providing proper information about the changes you are trying to implement. We assure you that Faveo community will help you and your customization can be a part of Faveo application if it follows our contributing guidelines.

|=====================================================
| v1.10 Laravel Framework update
|=====================================================
Expand Down
1 change: 0 additions & 1 deletion vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,6 @@
'Table_Row_Group_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/table_row_group_frame_reflower.cls.php',
'Table_Row_Group_Renderer' => $vendorDir . '/dompdf/dompdf/include/table_row_group_renderer.cls.php',
'Table_Row_Positioner' => $vendorDir . '/dompdf/dompdf/include/table_row_positioner.cls.php',
'TestCase' => $baseDir . '/tests/TestCase.php',
'Text_Frame_Decorator' => $vendorDir . '/dompdf/dompdf/include/text_frame_decorator.cls.php',
'Text_Frame_Reflower' => $vendorDir . '/dompdf/dompdf/include/text_frame_reflower.cls.php',
'Text_Renderer' => $vendorDir . '/dompdf/dompdf/include/text_renderer.cls.php',
Expand Down
1 change: 0 additions & 1 deletion vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,6 @@ class ComposerStaticInit598add4b9b35c76d3599603201ccdd6d
'Table_Row_Group_Frame_Reflower' => __DIR__ . '/..' . '/dompdf/dompdf/include/table_row_group_frame_reflower.cls.php',
'Table_Row_Group_Renderer' => __DIR__ . '/..' . '/dompdf/dompdf/include/table_row_group_renderer.cls.php',
'Table_Row_Positioner' => __DIR__ . '/..' . '/dompdf/dompdf/include/table_row_positioner.cls.php',
'TestCase' => __DIR__ . '/../..' . '/tests/TestCase.php',
'Text_Frame_Decorator' => __DIR__ . '/..' . '/dompdf/dompdf/include/text_frame_decorator.cls.php',
'Text_Frame_Reflower' => __DIR__ . '/..' . '/dompdf/dompdf/include/text_frame_reflower.cls.php',
'Text_Renderer' => __DIR__ . '/..' . '/dompdf/dompdf/include/text_renderer.cls.php',
Expand Down

0 comments on commit 00a7111

Please sign in to comment.