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

Merge develop to master #150

Closed
wants to merge 91 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
c70e73a
Docker files uploaded
gonmarmar5 Oct 25, 2022
856aebe
git ignore updated
eksavazquez Nov 2, 2022
f5cbf7c
Update git ignore
eksavazquez Nov 2, 2022
04b75f2
Update .gitignore
eksavazquez Nov 2, 2022
0024180
Update .gitignore
eksavazquez Nov 2, 2022
b22c5d1
Commit test
gonmarmar5 Nov 2, 2022
4dd677b
Commit test
eksavazquez Nov 2, 2022
a018a76
feat: Attempt to create task list view
gonmarmar5 Nov 4, 2022
5e795b8
fix: Time Trucker button and view
eksavazquez Nov 7, 2022
f9263c1
style: updated task view
gonmarmar5 Nov 7, 2022
a0e44bd
feat: Migración de la tabla de tareas
eksavazquez Nov 10, 2022
21ee799
feat: List task and view task views working
eksavazquez Nov 10, 2022
e2fd020
feat: Attributes for table tasks added
eksavazquez Nov 12, 2022
6b30295
style: updated task list and view
gonmarmar5 Nov 12, 2022
ab7482f
Merge branch 'timetracker#123' of https://github.com/innosoft-evident…
gonmarmar5 Nov 12, 2022
60ea5b4
feat : Remove Controller and fixed list view
gonmarmar5 Nov 12, 2022
c0675da
style: Create task updated
eksavazquez Nov 12, 2022
cb954b2
Merge branch 'timetracker#123' of https://github.com/innosoft-evident…
eksavazquez Nov 12, 2022
550d3d1
feat : Create tasks
gonmarmar5 Nov 12, 2022
87f33e5
feat: edit a task
eksavazquez Nov 12, 2022
cc77cd2
Merge branch 'timetracker#123' of https://github.com/innosoft-evident…
eksavazquez Nov 12, 2022
6067c67
fix: EvidenceController fixed
eksavazquez Nov 12, 2022
b6f8e18
feat: Create models and tables
carmengl00 Nov 14, 2022
3b1ea93
feat: edit a task working
eksavazquez Nov 15, 2022
1ae48bd
feat: added function add tasks
gonmarmar5 Nov 15, 2022
36e679d
fix: edit a task not delete the old task
eksavazquez Nov 15, 2022
2d575f2
Merge branch 'timetracker#123' of https://github.com/innosoft-evident…
eksavazquez Nov 15, 2022
6035a17
fix: Edit duration of a task
eksavazquez Nov 15, 2022
7321ee2
feat: Generate a report of tasks
eksavazquez Nov 15, 2022
3cab96e
test: test of list tasks
eksavazquez Nov 15, 2022
084f670
fix: count hours while creating tasks
gonmarmar5 Nov 15, 2022
311863f
Merge branch 'timetracker#123' of https://github.com/innosoft-evident…
gonmarmar5 Nov 15, 2022
a44c688
feat: keep data after realoding
gonmarmar5 Nov 15, 2022
5510f4e
fix: Some fixes realeted to counting hours
gonmarmar5 Nov 16, 2022
51b50df
Update tests
eksavazquez Nov 17, 2022
fb4fe49
test: tests created
gonmarmar5 Nov 18, 2022
c05092f
fix: Fixed some table problems
carmengl00 Nov 18, 2022
1c92e8b
feat: List kanban tables
carmengl00 Nov 18, 2022
b17c85d
feat: kanban table with issue depending on status
carmengl00 Nov 22, 2022
3edeb0a
test: task test updated
eksavazquez Nov 22, 2022
bdd4535
Merge pull request #1 from innosoft-evidentia-3/timetracker#123
gonmarmar5 Nov 22, 2022
cbfc489
fix: action quickfix
eksavazquez Nov 22, 2022
99c6c86
Merge pull request #2 from innosoft-evidentia-3/timetracker#123
Nov 22, 2022
2c9d104
fix: actions update
eksavazquez Nov 22, 2022
f956f82
fix: Sonar properties
eksavazquez Nov 22, 2022
da1db33
feat: Validate and custom error message
gonmarmar5 Nov 23, 2022
42c7ed4
Cuota de espacio ocupada hecha
pedparbas Nov 23, 2022
665f227
Merge pull request #3 from innosoft-evidentia-3/timetracker#123
Nov 25, 2022
6a1c313
feat: grouped files by file type in evidentia
juagomram Nov 25, 2022
6904be4
feat: Attempt to create Dashboard view
juagomram Nov 25, 2022
6dbdf2d
feat: Added more data for dashboard
juagomram Dec 1, 2022
fc1a270
Ćreate and edit of an issue
migueegomez7 Dec 2, 2022
99a080a
fix: Docker image fix
eksavazquez Dec 2, 2022
84d6bb6
feat: Added createandedit for kanban
migueegomez7 Dec 3, 2022
48f113c
feat: Edit and create methods in KanbanController
migueegomez7 Dec 3, 2022
811b9ea
fix: some fix create kanban
carmengl00 Dec 5, 2022
b014dd9
fix: fixed kanban table create.
carmengl00 Dec 7, 2022
5e2e999
feat: create issue button working
carmengl00 Dec 7, 2022
a82adb1
feat: new issue view working
carmengl00 Dec 8, 2022
f2027e6
feat: Added new Data for Dashboard
juagomram Dec 9, 2022
9da5ddf
refact: Added new dataand refactorizated functions
juagomram Dec 9, 2022
afdc741
feat: users list for create issue.
carmengl00 Dec 9, 2022
5ab2428
fix: model and table
carmengl00 Dec 10, 2022
a6f9c64
fix: create issue working
carmengl00 Dec 10, 2022
fc0e293
feat: routing y creación del template del filemanager
pedparbas Dec 10, 2022
6c92e74
Merge branch 'fileManager#114' of https://github.com/innosoft-evident…
pedparbas Dec 10, 2022
f5cf765
feat: avances en ManagementController
pedparbas Dec 12, 2022
289b710
feat: delete kanban table
carmengl00 Dec 12, 2022
ffe501f
fix: Actualizado según nuestra plantilla
gonmarmar5 Dec 13, 2022
7ee59aa
Update bug_report.md
gonmarmar5 Dec 13, 2022
8fba48a
fix: Plantilla según nuestra política
gonmarmar5 Dec 13, 2022
1684411
Update bug_report.md
gonmarmar5 Dec 13, 2022
43a0df3
Update nueva_funcionalidad.md
gonmarmar5 Dec 13, 2022
7f37715
Merge pull request #17 from innosoft-evidentia-3/quickfix
Dec 13, 2022
7b358c4
feat: filemanager verificación de archivos.
pedparbas Dec 15, 2022
d029750
refact: Deleted no funtional code
juagomram Dec 17, 2022
8c94d94
Merge branch 'develop' into fileManager#114
pedparbas Dec 17, 2022
9dbcaf8
test: test about Kanban and Issue
carmengl00 Dec 17, 2022
2ec30b8
Merge branch 'develop' into tableroKanban#111
carmengl00 Dec 17, 2022
83581a4
test: Added test for Dashboard
juagomram Dec 18, 2022
10e7cc8
quickfix: filemanager evidencia ya no repite el tipo de archivo
pedparbas Dec 18, 2022
473541c
Merge branch 'fileManager#114' of https://github.com/innosoft-evident…
pedparbas Dec 18, 2022
93e9445
Merge pull request #25 from innosoft-evidentia-3/tableroKanban#111
gonmarmar5 Dec 18, 2022
5aec2cf
fix: Corrected some bugs
juagomram Dec 18, 2022
f01a623
fix: Corrected bugs
juagomram Dec 18, 2022
d4b8cce
fix: Corrected some more bugs
juagomram Dec 18, 2022
26cec52
fix: Corrected bugs from last push
juagomram Dec 18, 2022
a13acdc
test: filemanager tests
pedparbas Dec 18, 2022
f6af478
fix: filemanager sonarCloud minor bugs fixing
pedparbas Dec 18, 2022
16dcea4
File manager#114
Dec 18, 2022
1edbdd0
Merge pull request #24 from innosoft-evidentia-3/dashboardProfesor#19
carmengl00 Dec 18, 2022
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
2 changes: 1 addition & 1 deletion .env.laradock
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ TRAEFIK_HOST_HTTP_PORT=80
TRAEFIK_HOST_HTTPS_PORT=443
TRAEFIK_DASHBOARD_PORT=8888
# basic authentication for traefik dashboard username: admin password:admin
TRAEFIK_DASHBOARD_USER=admin:$2y$10$lXaL3lj6raFic6rFqr2.lOBoCudAIhB6zyoqObNg290UFppiUzTTi
TRAEFIK_DASHBOARD_USER='admin:$2y$10$lXaL3lj6raFic6rFqr2.lOBoCudAIhB6zyoqObNg290UFppiUzTTi'
ACME_DOMAIN=example.org
[email protected]

Expand Down
43 changes: 18 additions & 25 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
name: Reportar un bug
about: Crea un incidencia para ayudar a mejorar evidencia
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.
**¿Qué pasos producen el problema?**

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
1.

**Expected behavior**
A clear and concise description of what you expected to happen.
2.

**Screenshots**
If applicable, add screenshots to help explain your problem.
3.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**¿Cuál es el resultado esperado?**

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
* E:

* R:

**¿Qué versión de producto y sistema operativo estoy usando?**

*

**Detalles adicionales:**

*

**Additional context**
Add any other context about the problem here.
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/nueva_funcionalidad.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ tags: ''

---

**¿Está funcionalidad está asociada a un problema? Por favor, descríbelo.**
**¿Está funcionalidad está asociada a un problema?**

Una descripción concisa y clara del problema. E.g: Siempre me frustra que... [...]
*

**Describe la solución que te gustaría**
**¿Qué solución planteo?**

Una descripción concisa y clara de lo que te gustaría que ocurriese.
*

**Describe alternativas que hayas considerado**
**¿Existe otras soluciones posibles?**

Una descripción concisa y clara de soluciones alternativas o funcionalidades que hayas considerado.
*

**Contenido adicional**
**Detalles adicionales:**

Añade cualquier otro contenido o capturas sobre la funcionalidad requerida.
*
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: drorganvidez/evidentia
images: innosoftevidentia3/innosoft-evidentia-3

- name: Build and push
uses: docker/build-push-action@v2
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ yarn-error.log
resources/.DS_Store
.idea/
.editorconfig
package-lock.json
*.lock
composer.lock
laradock

2 changes: 1 addition & 1 deletion access_workspace.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd laradock
docker exec -it laradock_workspace_1 bash
docker exec -it laradock-workspace-1 bash
51 changes: 51 additions & 0 deletions app/Exports/MyTasksExport.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

namespace App\Exports;

use App\Models\Task;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;

class MyTasksExport implements FromCollection, WithHeadings
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
$tasks = Task::where("user_id","=",Auth::id())->get();

$res = collect();
foreach($tasks as $task){

if(Auth::User()->hasRole('STUDENT')) {

$array = [
'Titulo' => strtoupper(trim($task->title)),
'Horas' => strtoupper(trim($task->hours)),
'Comité' => strtoupper(trim($task->comittee->name)),
'Fecha de inicio' => strtoupper(trim($task->start_date)),
'Fecha fin' => strtoupper(trim($task->end_date)),
'Creada' => strtoupper(trim($task->created_at))
];

$object = (object) $array;
$res->push($object);
}
}
return $res;
}

public function headings(): array
{
return [
'Título',
'Horas',
'Comité',
'Fecha de inicio',
'Fecha fin',
'Creada'
];
}
}
20 changes: 19 additions & 1 deletion app/Http/Controllers/EvidenceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,22 @@ public function view($instance,$id)
$instance = \Instantiation::instance();
$evidence = Evidence::find($id);

/*lista de archivos segun el tipo*/

$evidence_storaged_files_type = collect();
foreach($evidence-> proofs as $proof){
$evidence_storaged_files_type->push($proof->file->type);
}
$evidence_vp_type = collect();
foreach($evidence->verified_proofs as $vp)
{
$evidence_vp_type->push($vp->type);
}
$evidence_storaged_files_type = $evidence_storaged_files_type->unique();
$evidence_vp_type = $evidence_vp_type->unique();

return view('evidence.view',
['instance' => $instance, 'evidence' => $evidence]);
['instance' => $instance, 'evidence' => $evidence, 'dict_storaged_files' => $evidence_storaged_files_type, 'dict_vp_filetypes' => $evidence_vp_type]);
}

public function list()
Expand Down Expand Up @@ -303,6 +317,10 @@ private function delete_files($evidence)
{
$proof->file->delete();
}
foreach($evidence->verified_proofs as $proof)
{
$proof->delete();
}
}

/****************************************************************************
Expand Down
172 changes: 172 additions & 0 deletions app/Http/Controllers/KanbanController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<?php

namespace App\Http\Controllers;

use App\Models\Comittee;
use App\Models\Kanban;
use App\Models\Issue;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Maatwebsite\Excel\Facades\Excel;
use App\Rules\MaxCharacters;
use App\Rules\MinCharacters;

class KanbanController extends Controller
{

public function __construct()
{
$this->middleware('auth');
$this->middleware('checkroles:PRESIDENT|COORDINATOR|REGISTER_COORDINATOR|SECRETARY|STUDENT');
}


public function view($instance,$id)
{
$instance = \Instantiation::instance();
$kanban = Kanban::find($id);

$issues = Issue::where(['kanban_id' => $id])->get();

return view('kanban.view',
['instance' => $instance, 'kanban' => $kanban, 'issues' =>$issues]);
}

public function list()
{
$kanban = Kanban::where(['user_id' => Auth::id(),'last' => true])->get();
$instance = \Instantiation::instance();

$kanban = $kanban->reverse();

return view('kanban.list',
['instance' => $instance, 'kanban' => $kanban]);
}

/****************************************************************************
* CREATE A KANBAN
****************************************************************************/

public function create()
{
$instance = \Instantiation::instance();
$comittees = Comittee::all();

return view('kanban.create', ['route' => route('kanban.new',$instance),
'instance' => $instance,
'comittees' => $comittees]);
}

public function new(Request $request)
{

$instance = \Instantiation::instance();

$request->validate([
'title' => 'required|min:5|max:255'
]);

// datos necesarios para crear tableros
$user = Auth::user();

// creación de un nuevo
$kanban = Kanban::create([
'title' => $request->input('title'),
'user_id' => $user->id,
'comittee_id' => $request->input('comittee')
]);

// cómputo del sello
//$kanban = \Stamp::compute_evidence($evidence);
$kanban->save();

return redirect()->route('kanban.list',$instance)->with('success', 'Tablero creado con éxito.');

}

/****************************************************************************
* REMOVE A KANBAN
****************************************************************************/
public function remove_kanban(Request $request, $instance)
{
$kanban = Kanban::find($request->_id);
$instance = \Instantiation::instance();

$issues = Issue::all();

foreach($issues as $issue)
{
if($issue->kanban_id == $kanban->id){
$issue -> delete();
}
}

$kanban->delete();

return redirect()->route('kanban.list', ['instance' => $instance,
'id' => $kanban -> id])->with('success', 'Tablero eliminado con éxito.');
}


/****************************************************************************
* CREATE AN ISSUE
****************************************************************************/

public function create_issue($instance, $id)
{
$instance = \Instantiation::instance();
$kanban = Kanban::find($id);
$users = User::orderBy('surname')->get();

return view('kanban.create_issue', ['route' => route('kanban.view.issue.new', ['instance' => $instance, 'id' => $kanban->id]),
'users' => $users,
'instance' => $instance,
'kanban' => $kanban]);
}


public function new_issue(Request $request, $instance, $id)
{

$instance = \Instantiation::instance();

$request->validate([
'title' => 'required|min:5|max:255',
'description' => ['required',new MinCharacters(10),new MaxCharacters(20000)],
'users' => 'required|array|min:1',
'estimated_hours' => ['numeric','sometimes','min:0','max:99']
]);

// datos necesarios para crear issue
$user = Auth::user();

// creación de un nuevo
$issue = Issue::create([
'title' => $request->input('title'),
'description' => $request->input('description'),
'estimated_hours'=> $request->input('estimated_hours'),
'kanban_id'=>$id
]);

$issue->save();

// Asociamos los usuarios a la issue
$users_ids = $request->input('users',[]);

foreach($users_ids as $user_id)
{

$user = User::find($user_id);
$issue->users()->attach($user);

}
$kanban = Kanban::find($id);

return redirect()->route('kanban.view', ['instance' => $instance, 'id' => $kanban->id])->with('success', 'Tarea creada con éxito.');

}


}
Loading