Skip to content

Commit

Permalink
[backend] In a container, display the entire history tooltip (#9021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwendoline-FAVRE-FELIX authored Nov 26, 2024
1 parent 5d3920d commit 00813e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const generateUpdateMessage = async (context, entityType, inputs) => {
if (isNotEmptyField(values)) {
// If update is based on internal ref, we need to extract the value
if (relationsRefDefinition) {
message = values.map((val) => truncate(extractEntityRepresentativeName(val))).join(', ');
message = values.map((val) => truncate(extractEntityRepresentativeName(val), 250)).join(', ');
} else if (key === creators.name) {
message = 'itself'; // Creator special case
} else if (key === 'authorized_members') {
Expand All @@ -101,7 +101,7 @@ export const generateUpdateMessage = async (context, entityType, inputs) => {
return `${member?.name ?? id} (${access_right})`;
}).join(', ');
} else if (attributeDefinition.type === 'string' && attributeDefinition.format === 'json') {
message = values.map((v) => truncate(JSON.stringify(v)));
message = values.map((v) => truncate(JSON.stringify(v), 250));
} else if (attributeDefinition.type === 'date') {
message = values.map((v) => ((v === FROM_START_STR || v === UNTIL_END_STR) ? 'nothing' : v));
} else if (attributeDefinition.type === 'object') {
Expand Down

0 comments on commit 00813e7

Please sign in to comment.