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

Feature - Administración del CRM - Creación módulo Monitorización #211

Open
wants to merge 112 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
d370306
initial commit
ainaraRT Apr 24, 2024
eafadb7
add icon
ainaraRT May 28, 2024
57e5506
search and list view
ainaraRT May 28, 2024
594ba4b
language
ainaraRT May 28, 2024
10fb7ec
language
ainaraRT May 28, 2024
ceb2303
return action
ainaraRT May 28, 2024
e717e7e
Merge branch 'develop' into feature/TrackerModule
ainaraRT Aug 14, 2024
35249a5
icon update
ainaraRT Aug 22, 2024
d8fc1b8
change searchs
ainaraRT Aug 28, 2024
221e9c0
track login and logout
ainaraRT Aug 28, 2024
3e8908d
update access tracker
ainaraRT Sep 11, 2024
caf32b6
listviewdef
ainaraRT Sep 11, 2024
7a96420
wip
ainaraRT Sep 11, 2024
978cb2e
custom language
ainaraRT Sep 11, 2024
20295b2
tracker user vardef
ainaraRT Sep 11, 2024
3698a65
custom view list
ainaraRT Sep 11, 2024
578f368
track deleted records
ainaraRT Sep 12, 2024
ca2d24a
update language
ainaraRT Sep 12, 2024
ce993c5
order date modified by asc
ainaraRT Sep 12, 2024
bb53400
track modified and created records
ainaraRT Sep 18, 2024
cc7ab94
see the module if the user is admin
ainaraRT Sep 18, 2024
8863945
searchdef and listviewdef
ainaraRT Sep 18, 2024
513a513
date_modified searchdef and link false to item_summary
ainaraRT Sep 18, 2024
e1c6659
tracker_user and modified vardefs
ainaraRT Sep 18, 2024
cc39e9e
tracker_user with user_name
ainaraRT Sep 18, 2024
e2f3c37
wip
ainaraRT Sep 18, 2024
143efc5
current user only with user_id
ainaraRT Sep 18, 2024
81a9923
user actions list language
ainaraRT Sep 18, 2024
fbab4de
wip
ainaraRT Sep 18, 2024
36c9ba8
itmer_summary not empty
ainaraRT Sep 18, 2024
13d4013
accessed only by administrators
ainaraRT Sep 20, 2024
11f6592
delete params and access by admin from the view list
ainaraRT Sep 20, 2024
fab16f5
menu in extension
ainaraRT Sep 24, 2024
45aba2d
Merge remote-tracking branch 'origin/develop' into feature/TrackerModule
ainaraRT Sep 26, 2024
a619241
update icons
ainaraRT Sep 30, 2024
bc45dad
track the login and the logout of the users
ainaraRT Oct 1, 2024
7e20f36
wip
ainaraRT Oct 1, 2024
13ad5b0
wip
ainaraRT Oct 1, 2024
204b20b
wip
ainaraRT Oct 1, 2024
a2b10a8
remove unused files
ainaraRT Oct 3, 2024
74bae66
remove logic hooks
ainaraRT Oct 8, 2024
7e3dc01
remove tracker_user
ainaraRT Oct 8, 2024
e1b9125
sticvardefs
ainaraRT Oct 8, 2024
beacd39
inline edit false
ainaraRT Oct 8, 2024
928c39a
save, update and deleted records
ainaraRT Oct 8, 2024
9283e4d
detailview records
ainaraRT Oct 8, 2024
de26d55
change metadata to modules
ainaraRT Oct 8, 2024
2d6bcdf
original vardef
ainaraRT Oct 8, 2024
48fdd57
remove view list
ainaraRT Oct 8, 2024
a44f8f6
wip
ainaraRT Oct 8, 2024
d4f579b
wip
ainaraRT Oct 8, 2024
971ce6b
corrected type assigned_user
ainaraRT Oct 8, 2024
3373483
track the bean when is deleted
ainaraRT Oct 8, 2024
6dd1d09
set when is visible the view
ainaraRT Oct 8, 2024
4ba7a7b
track_view with deleted action
ainaraRT Oct 8, 2024
5a8abe2
update actions language
ainaraRT Oct 8, 2024
b0ad6b0
inline edit false vardefs and action type enum
ainaraRT Oct 8, 2024
bfd748b
login and logout of the user
ainaraRT Oct 15, 2024
05cf2cf
wip
ainaraRT Oct 15, 2024
2fc67ab
wip
ainaraRT Oct 15, 2024
bc011a7
comments in the code
ainaraRT Oct 15, 2024
3dec94d
view list with the mass update false
ainaraRT Oct 15, 2024
0116168
Hide Quick Edit Pencil
ainaraRT Oct 15, 2024
28a6910
module in administration
ainaraRT Oct 16, 2024
674cc12
vardefs in modules
ainaraRT Oct 17, 2024
1b9364e
search assigned user
ainaraRT Oct 17, 2024
b94342b
change user to current_user
ainaraRT Oct 17, 2024
d18da2f
change label and type of the assigned user
ainaraRT Oct 17, 2024
79cadb9
remove monitor_id from the list view and search def
ainaraRT Oct 18, 2024
c96ead8
remove 'visible' value to track the login and logout without removing…
ainaraRT Oct 18, 2024
2b29cab
Sort by date_modified in ASC
ainaraRT Oct 18, 2024
e25c220
comments added and placed correctly
ainaraRT Oct 22, 2024
83de123
translate into Spanish
ainaraRT Oct 25, 2024
93f6d32
VardefManager assignable anda basic
ainaraRT Oct 29, 2024
59e99a5
metric assigned_user_id in tracker_monitor
ainaraRT Oct 29, 2024
29e6d5a
remove or change to assigned_user_id
ainaraRT Oct 29, 2024
17ec701
Improving translation
jalbaiges Oct 29, 2024
ed35e5f
Improving translation
jalbaiges Oct 29, 2024
4198029
Improving translation
jalbaiges Oct 29, 2024
6b70ec5
Remove doubled lines
jalbaiges Oct 29, 2024
62b6c9f
Improving translation
jalbaiges Oct 29, 2024
d4d2c2b
Improving translation
jalbaiges Oct 29, 2024
24e1500
Minor fix
jalbaiges Oct 29, 2024
79bbaf2
Improving translation
jalbaiges Oct 29, 2024
de74463
Improving translation
jalbaiges Oct 29, 2024
b4cdcf2
Improving translation
jalbaiges Oct 29, 2024
3fcf2db
Minor fix
jalbaiges Oct 29, 2024
71aa300
Minor fix
jalbaiges Oct 29, 2024
38caf9c
Improving translation
jalbaiges Oct 29, 2024
bf56901
Improving translation
jalbaiges Oct 29, 2024
9d74260
Improving translation
jalbaiges Oct 29, 2024
67989ce
Improving translation
jalbaiges Oct 29, 2024
b8e209f
LBL review
jalbaiges Oct 29, 2024
075139e
Improving translation
jalbaiges Oct 29, 2024
f364e10
Improving translation
jalbaiges Oct 29, 2024
0545c4e
Minor fix
jalbaiges Oct 29, 2024
1480db0
Minor fix
jalbaiges Oct 29, 2024
00d9fff
Improving translation
jalbaiges Oct 29, 2024
cda5940
Correct confusing label
jalbaiges Oct 29, 2024
4ab40dd
Merge remote-tracking branch 'origin/develop' into feature/TrackerModule
ainaraRT Dec 16, 2024
eb0ca09
themes updated
ainaraRT Dec 16, 2024
7818e5b
some fixes
ainaraRT Jan 9, 2025
6eae38a
redo sugarview change of the user_id
ainaraRT Jan 9, 2025
53a9798
excluding a module which is not understandable
ainaraRT Jan 9, 2025
07c2b2b
remove user_id and added link false to item_id
ainaraRT Jan 13, 2025
c45c4be
assigned_user_name inline_edit to false
ainaraRT Jan 14, 2025
ee7936e
Tracker prune interval for the Scheduler
ainaraRT Jan 14, 2025
20185d7
unnecesary code in vardefs
ainaraRT Jan 20, 2025
fd0359b
change the condition to shown the module in administration
ainaraRT Jan 21, 2025
c8dd7a8
Merge remote-tracking branch 'origin/develop' into feature/TrackerModule
ainaraRT Jan 22, 2025
bddb4fd
code lost in the merge
ainaraRT Jan 22, 2025
4f35306
update themes
ainaraRT Jan 22, 2025
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
detailview records
  • Loading branch information
ainaraRT committed Oct 8, 2024
commit 9283e4dd9b63e7d3b3161790ce56bdf766261cc6
27 changes: 21 additions & 6 deletions include/MVC/View/SugarView.php
Original file line number Diff line number Diff line change
@@ -350,18 +350,33 @@ protected function _trackView()
$trackerManager = TrackerManager::getInstance();
$timeStamp = TimeDate::getInstance()->nowDb();
if ($monitor = $trackerManager->getMonitor('tracker')) {
$monitor->setValue('action', $action);
$monitor->setValue('user_id', $GLOBALS['current_user']->id);
if($action == 'editview') {
$monitor->setValue('action', 'save');
} else {
$monitor->setValue('action', $action);
}

$user = $GLOBALS['current_user'];

$monitor->setValue('user_id', $user->id);
$monitor->setValue('assigned_user_link', $user->user_name);
$monitor->setValue('module_name', $this->module);
$monitor->setValue('date_modified', $timeStamp);
$monitor->setValue(
'visible',
(($monitor->action == 'detailview') || ($monitor->action == 'editview')) ? 1 : 0
);

if($monitor->action == 'editview'){
$monitor->setValue('visible', 0);
} else {
$monitor->setValue('visible', 1);
}

if (!empty($this->bean->id)) {
$monitor->setValue('item_id', $this->bean->id);
$monitor->setValue('item_summary', $this->bean->get_summary_text());
if($monitor->action == 'authenticate' || $monitor->action == 'logout'){
$monitor->setValue('item_id', $user->id);
$monitor->setValue('item_summary', $user->full_name);
}

}

//If visible is true, but there is no bean, do not track (invalid/unauthorized reference)
Loading