Skip to content

v6.2.5

Compare
Choose a tag to compare
@renderpci renderpci released this 08 Aug 19:58
· 820 commits to master since this release

[6.2.5] - 2024-08-08

🥳 🎉

Major changes

tags

This version change the references tags in component_text_area. Now the references will stored in a component_portal defined as indexation with relation_type = dd605, the old tag references will move in the update process.
This version change the draw tags in component_text_area. Now the draw will stored in a component_portal defined as indexation with relation_type = dd305, the old tag references will move in the update process.

Bulk process

Review the profiles to get the new components: rsc1368 in audiovisual section rsc167 and rsc1369 in image section rsc170
This version introduce the bulk process section and reference to the import, propagate, revert changes and publication processes. Review the profiles to set permissions to the global administrators ans other users.
Bulk process group the changes done in one process and time_machine can revert the bulk process in the time machine tool.
Bulk processes generate a section and create a default title automatically, and description to identify the process done, in import csv data is possible change the title directly in the tool import.

Read only

Refactor the access to media files with read only permissions. Now the user with read only permissions can open the media files into the viewer.

Bug Fixes

  • [breaking] Fix create_posterframe bug where audio files generates a infinite loop trying to get the aspect ratio
  • [breaking] Fix component_filter 'set_dato_default' issues where new permission button was not taken into account
  • Fix non extension issue when get backup files (get_backup_files, get_mysql_backup_files)
  • Fix login SAML error where code was passed a array instead string, preventing the login
  • Fix minor ts_object drag and insert issues
  • Fix component_av error where media_streams are not calculated correctly disallowing media navigation by frame
  • Fix get_json_langs error in component_geolocation where value is not passed between navigation loads
  • Fix ts_object bug where root nodes were removed after close edit window (refresh_element)
  • Fix Safari issue where Ontology path is not recognized opening a new window
  • Fix portal view line CSS issue where margin is not as expected (zero)
  • Fix get_process_status issues with protocol HTTP/1.1. Added fill_buffer property inside the output object instead the previous blank spaces at end
  • Fix check_active_tld issue where 'section_id' was return as non active, but for SQO uses is valid (filter paths). See rsc80 properties
  • Fix CSS issues on dd_grid view indexation with av transcription and buttons width
  • Fix CSS dd_grid .column.indexation error
  • Fix set_default_dato error where section tipo was not taken into account
  • Fix section label issue where search presets section was ignored on set menu section label
  • Fix error where empty values of filter::get_filter_user_records_by_id returns null instead an expected empty array
  • Fix Safari unsupported requestIdleCallback
  • Fix diffusion bug where multiple time_machine records are created on publish
  • Fix unnecessary search cycle in tool diffusion export list
  • Fix non defined common::$pdata->section_counter issue in component_update
  • Fix component_text_area empty values issue on 'update_dato_version' method
  • Fix no image management issue in tool_image_rotation
  • Set the filter_by_locators of the rqo.sqo with the new locator when user click to add or duplicate record in a pop-up Windows.
  • Set correct permissions for section in list mode. Now is checked the delete button and add button permissions correctly.
  • Set the correct attribute for tag_id to get last tag id
  • Set the key_dir variable to simpleUpload service_ckeditor to set the directory to save the uploaded images.
  • To show the correct size of images in html_text before load the ckeditor, and set the text_area toolbar up the images in the z-index.
  • Change the draw tag svg code to render correctly in Firefox
  • Fallback to array when the filter_user_records_by_id return a null value (it happens when the user has not set any filter by id; dd478 in user section; dd128)
  • Double save of time_machine when is saved a bulk process. Removed the process_id check as necessary to create new record

Documentation

  • Add some comments and definitions in locator class
  • Add some comments into portal filter_data_by_tag_id specifying that calls could be defined into the ontology
  • Add comment as how default call to API are interpreted to create a upload file used by service ckeditor.

Features

  • Add tag_type definition and function into locator class
  • Get the reference tag in the same way that index tag in service ckeditor
  • Add to select the reference test into text_area when the user click into the reference tag
  • Add find_instances method to get a specific instance with tipo,section_tipo,section_id,mode and lang in the same way than PHP.
  • Add get_tags_info function into component_text_area API to get the resolve tags (locators as terms).
  • Add a get_tags_info method in the client component_text_area to get the resolve tags in a common way.
  • Add get_selected_tag() method to get the tag data of the tag selected by the user
  • Implement a common build_tag in component_text_area to use the layer selection in a common way for draw, geo and page tags.
  • Implement a draw tag indexation with related component_portal, set and get the locator from the related component using the view_indexation of the portal. Now the draw tags could be reference the layer of the image and can be pointed by a standard locator.
  • Add to include a review and fix broken indexations for draw tags. Now the review will include a delete draw tags when is not present in text area.
  • To include the layer selector to set the correct image layer into the draw tags. Used for missing draw tags or change the current tag.
  • Add tool_revert. Used to revert bulk processes.
  • Add to get the current date and time as Unix timestamp.
  • Implement process_id property for the components, to be saved in time machine, when the component change his data inside of bulk process (propagate or import processes).
  • Implement to view the process_id data into the time machine list.
  • Implement the revert process of time machine for bulk processes identified by process_id. Now the process_id identify every bulk process and this implementation revert the change.
  • Save the process_id of the import CSV data process into time machine, to use to revert the import changes.
  • Add render_callback into section_record to control specific column render functionality. Now is possible control the render process of the column instance, ex: to add specific events.
  • Implement get_value action into core_api integrated within the read action. The API will return the flat text version of the data.
  • Implement an input text to identify the bulk process into import Dédalo CSV.
  • Add bulk process id generation for tool_diffusion. Now the process will save a common bulk process id. Used to group all sections was published in the publication process.
  • Add some indexes to update version to 6.2.5 to improve the searches.

Miscellaneous Tasks

  • Remove the render_reference when the user click inside a reference tag in text_area, now the user need to click into the reference button to open the reference modal.
  • Add update 6.2.5 for the component_text_area, it move the references to component_autocomplete_hi
  • Add 6.2.5 update to text_area to move the html and dd references into component_portal
  • Remove references for text_areas by default. Now the references need a component_portal associate to get the reference locators
  • Add reference tag style for view_indexation of component_portal
  • Add Tigrinya language translation to ckeditor
  • Add blue draw tags (missing tags)
  • Add update matrix_time_machine to store process_id
  • Change the process_id variable name to local_db_id to avoid conflicts with time_machine bulk_process_id
  • Added constants for process section into dd_tipos.
  • Update tool import csv register with the new labels.
  • Update tool propagate component data register with new labels
  • Update tool time machine register with new labels
  • Change the process_id variable name to bulk_process_id to identify it more clear.
  • Update tool register of time machine, propagate data and import Dédalo CSV to match with Dédalo version 6.2.5
  • Add test_create_directory test to test unit
  • Add data_format to dd_grid render_json_column (view table). If data_format is passed and is 'dedalo_raw', encode the HTML characters to prevent the browser from rendering it
  • Improve area_maintenance long_process widget adding update_rate control
  • Unify component_inverse CSS appearance like component_section_id
  • Add table info to API read raw response
  • Improve search presets appearance
  • Add search_tm unit test
  • Change updates ALTER TABLE matrix_time_machine sentence to prevent errors when column bulk_process_id is already defined
  • Add back-trace to propagate component dato to relations table.
  • Change the label «listado» to list name
  • Revert delete component_css to control the viewer buttons with permissions
  • Add control for external sources to handler_open_viewer in media_common. Now if the media component has a external source it will not open the tool_upload.
  • Update turf library to v7
  • Add await for load turf and iro libraries. Prevent error to render data without the libraries.
  • Add new security method get_section_new_permissions to easy get section button new permissions (used by component_filter y default dato)
  • Add class security PHP test unit
  • Add missing bulk_process_label to tool_import_dedalo_csv get_import_files_options test
  • Add People special indexes (name [rsc85], surname [rsc86]) to area_maintenance::rebuild_db_indexes. Add matrix_time_machine_bulk_process_id
  • Implemented the tc tag in SVG format. Disable because render performance in browser.

Performance

  • Optimized component_geolocation libs load. Moved from init to get_map method
  • Optimized component_security_access (requestAnimationFrame and requestIdleCallback)
  • Optimize inspector secondary task like display component data or relation list

Refactor

  • [breaking] Refactor ts_object drag and drop code to prevent double events and strange behaviors
  • [breaking] Refactor tool_cataloging (numisdata) drag and drop code to prevent double events and strange behaviors
  • [breaking] Add new way to navigate to new section record. Now the behavior go to edit mode and save the filter_by_locator with the new section, the sqo generated is saved in session.
  • [breaking] Refactor instances.get_instance improving error management and response format
  • Change the view_indexation of the portal to get the tag_type instead use a fixed index tags. Now it can handle any other tag in the same way.
  • Change the way to get the attributes of the reference to be compatible with the other tags in get_last_tag_id. Now references get the last id in the same way than other tags.
  • Prevent fire selectionChangeDone event of ckEditor when the user do click inside a reference tag (as a text node). Text nodes fire the selectionChangeDone, but references need to works in the same way than other tags and need to prevent this event.
  • Change the reference render to get the locator from a component_autocomplete_hi instead his data-data. Now the reference data will save into an external component, a component_portal(autocomplete_hi) will have the locators of the references.
  • Change the render reference to reuse previous references. To set the same tag_id for the same reference between languages.
  • Change the way to get the tag_object from nodes when user click in one tag. Now the references get his information directly from the selection instead the node.
  • Change the component_indexation methods to be more generic. Now tags with locators use a external portal component as indexations and the methods need to be generic to use by different tags in the same way.
  • Add new generic get_tags_data_as_term_id() method to use by all tags. keep the old get_component_indexations_term_id because is used in publication (defined in «propiedades»)
  • Add new generic get_tags_data_as_terms() method to use by all tags. keep the old get_component_indexations_terms() because is used in publication (defined in «propiedades»)
  • Use get_tag_info of text_area to obtain the tag data instead to use the data of the component_text_area. Now the component_text_area does not calculate the tags data by default.
  • Re-design the tool_tr_print to follow the text more consistently
  • Re-style the tr_print whit a global grid
  • Unify check/create directory
  • Unify handler_open_viewer for component image in view mosaic. Now it use the media common method instead his own. Added control to remove the context menu when user has not permissions
  • Change the default draw tag to get the raster layer by default when the image has not layers defined.
  • Refactor tool_common.view_modal improving error management and response format
  • Add tags_reference definition to be used by tag creation for the text_area

Revert

  • Remove the revert tool, will use the time_machine tool to perform this feature.

Change

  • [breaking] Remove the old project filter (as locator) in search with order to use the join relations in the same way that use it the search without order.
  • [breaking] Add filter_by_locators when the sqo in session has previous to sustain the search coherence between modes. filter_by_locators is assigned by creating new sections.
  • [breaking] Check the properties of the sqo sent by client to be assigned if the property doesn't exist. Remove the isset check (incoherence with null values). Now when the property has set as null it will respected (it will use null as value)
  • [breaking] Change search behavior about order: Now, any 'Search' or 'Show all' actions, reset the current order
  • [breaking] Unify non standardized service_autocomplete rqo source (ddo) property 'autocomplete'. Now is passed into config property as {config:{autocomplete:true}} and managed directly from permissions and tools for easy and fast access.
  • Add fallback to 0 when the offset is not set calling to component_portal
  • Get the last_tag_id for references to indicate the sequential reference id instead use the same id for all references. Now the references will have a unique id in the text_area.
  • Add to remove empty data when the component send a empty array as data, in those cases remove the value of the component in datum.
  • Add to check if the component_text_area (as full html editor) has a reference defined into the toolbar if is not set remove from the toolbar. Now by default references are not set.
  • Add style of the tag used in the view_indexation instead use only an index style
  • Remove the indexation and note data by default in text_area. Now when the client need this information it call to text_area API.
  • Set all section_id as int to be compared between locators and tags data
  • Test of component_text_are to ge the new method get_component_tags_data
  • Add test for new methods of component_text_area to get the tags data.
  • Update ckeditor to 42.0.1
  • Remove the with of the image tag node. Now use only the height because the draw tags could be large when the text is more than 3 letters
  • Implemented the creation a draw tag as svg instead use the png base.
  • Implement the update of the draw tag label into the 6.2.5 text_area update. Now the tag will show the tag_id and layer_id in the label as: 6:2.
  • Add test of data.value to geolocation to get the layer data and render the layer selection
  • Check if the component_tags_reference has data before use it as tag_data, the first load is always empty, and a check is necessary.
  • Add to check the tag data before load the tag into vector editor, prevent to show a error when data is empty (empty is a valid data state)
  • To set the default orange color of svg format for tags images.
  • Change layout of the render draw to select layer
  • Remove the type from the locator of reference or draw before save it. Now the locator get the type defined by preferences.
  • Implement the process_id to be saved into time_machine into too_propagation. Now all changes of the propagation tool will be identified by a unique process_id into time machine.
  • Add labels into the tool time machine and update the version number to 2.0.4
  • Revert bulk processes is enabled for global_admin users only, normal users will show an informative text with the need to talk to a global administrator to revert the bulk process.
  • Change the warning button for danger button to revert bulk process in time machine tool.
  • Implement the bulk process section into the import Dédalo CSV tool. Now the import create new record into process section and save the label and file. It will use to identify the process in time_machine.
  • Modify the render_column_id to be async, to be compatible with the render_callback of the section_record
  • Implement the bulk process section into the propagate component data tool. Now the propagate create new record into process section and save the label and file. It will use to identify the process in time_machine.
  • Get the correct time machine row next to the bulk process id when the row selected is not the first.
  • Implement revert bulk process section into the time machine tool. Now the bulk revert get the bulk process label and save as bulk process into process section.
  • Check if the time_machine data has a null as string value and replace for null.
  • Remove the section_tipo and section_label for the bulk_process_label, redundant information, in tool import Dédalo CSV
  • Rename the window name with section_id , label and tipo
  • Change API read policy about activity log. Now, only read sections and areas generate activity log to prevent unnecessary logs like autocomplete search
  • Change worker_cache fetch cache value from 'reload' to 'no-cache'
  • Add warning to area maintenance widget unit test area render_long_process. Apache issues with SSE
  • Change Apache fix for HTTP/1.1 in long processes to more reliable data $_SERVER['SERVER_PROTOCOL'] (HTTP/1.1) instead previous http:// check
  • Change class diffusion_socrata to work in v6 context
  • Remove the double update_arrow_state in drop function in ts. Prevent to see double term when user drag and drop in tool cataloguing. TO TEST IT!
  • Change inspector data styles for better display or large values
  • Add permissions control to get_section_elements_context. Used to build search presets in filter, and components list in tool_export
  • Add create_directory function to core_functions to normalize new directory creation
  • Add (DEDALO_MEDIA_PATH . '/import') and (DEDALO_MEDIA_PATH . '/import/history') creating directory to dd_init_test
  • Add save time machine exclusion for update_publication_data 'first publication'. Only last publication must generate time machine record on section save
  • Change menu links behavior to able use mouse right click contextual menu
  • Remove render_column_id open window menu option to prevent navigation issues. Now, all alt key opened windows are rendered without menu
  • Add document.title window with the correct section_id | list, section_label etc. for section and areas. Now the window title is update with the result of the render (and navigation)
  • Remove the download buttons and context menu when user has not permissions.
  • Remove the download buttons and context menu when user has not permissions in view player av.
  • Add permissions control to component_pdf.
  • Remove the context menu and set the correct permissions when user has read only or none.
  • Add control permissions check to download button of the viewer image. Now if the user has < 2 will not show the button.
  • Remove the events restriction for media components when the component has a disabled_component class. Now the media component can open the viewers when user has a read_only permissions.
  • Add permissions control to disable context menu when user has read only permissions