Download the PHP package okvpn/better-oro-bundle without Composer
On this page you can find all versions of the php package okvpn/better-oro-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download okvpn/better-oro-bundle
More information about okvpn/better-oro-bundle
Files in okvpn/better-oro-bundle
Package better-oro-bundle
Short Description Performance improve & bugfix for oro-platform
License Apache-2.0
Homepage https://github.com/vtsykun/better-oro-bundle
Informations about the package better-oro-bundle
BetterOroBundle
This bundle provide bugfixes and new features for OroPlatform.
Table of Contents
- Job logger
- Change message priorities
- Message send events
- Dump not translated entities
- Command for generate Oro bundle
- Handle jobs exception
- Improve cron cleanup
- Better log format
- Disable container reset extension
- Calendar date duplicate
- Disable outgoing network requests by OroCRM Request Form
- Fix order by timePeriod in DateGroupingFilter
- Manual cron run
- Show datagrid exception if debug = true
- Dataaudit improvement
Configurable capabilities
Job logger
The job logger provides the ability to display logs in the UI. Usage: inject logger okvpn.jobs.logger
into your service
Example:
Execute jobs in active transaction
The log persistence happen in a separate transaction from the process that executes it, so information available to end user thru UI immediately when its created.
Change message priorities
You can change the predefined message priority. Example:
Priority | Map |
---|---|
0 | VERY LOW |
1 | LOW |
2 | MEDIUM |
3 | HIGH |
4 | VERY HIGH |
By default 2
Message send events
Generate bundle
The command oro:generate:bundle
helps you generates new bundles taking into account the specifics of the Oro application:
- create file
Resources/config/oro/bundles.yml
- create stub for migrations
- not update kernel, main config and main routing
app/*
Debug entity translations.
The command okvpn:entity-translations:dump
debug and find not translated labels for entities
Dump not translated labels for entity
Dump not translated labels for all entities for given bundle
Calendar date duplicate
There is the cron command oro:cron:calendar:date
for adding new days to the calendar table. This table usually
used for build report with group by days, for create dql query that rerurn result from empty period with grouping by days, etc.
But this command work not correctly: every time when cron triggered the duplicates appear in the table
This bundle fix it to preventing duplication of records in the oro_calendar_date
table.
Improve cron cleanup
When user run command oro:cron:definitions:load
to load cron definitions, all cron triggers will remove from database.
This behavior has been changed to allow the use of the functionality of the CronBundle without cron commands, ie to create triggers
that are not based on the commands.
Disable container reset extension
Reset of container after processing a message have a great impact on perforate and memory leak. This functionality is disabled by this bundle.
Dataaudit improvement
1) Removed not used indexes. The index size is 3x times more than the table size. At the same time, many indexes are not used and overlap each over. To remove not used index you can use query.
oid | table_name | row_estimate | total_bytes | index_bytes | toast_bytes | table_bytes | total | index | toast | table |
---|---|---|---|---|---|---|---|---|---|---|
1255 | pg_proc | 2894 | 999424 | 352256 | 8192 | 638976 | 976 kB | 344 kB | 8192 bytes | 624 kB |
16712 | oro_audit | 930151 | 968015872 | 710787072 | 8192 | 257220608 | 923 MB | 678 MB | 8192 bytes | 245 MB |
2) To remove old audit record you can use garbage collection cron command oro:cron:dataaudit-garbage-collector
To enable the cron command needs add to your configuration Resources/oro/app.yml
or config/config.yml
Where: keep_time
time in sec. action: update
, create
, remove
.
3) Set default organization if not token in security context. When command runs from CLI and modify entity,
its changes will not display in grid. You can set default organization for this case.
To set default organization ID needs update configuration Resources/oro/app.yml
or config/config.yml
Disable orocrm request form
Outgoing network requests to https://r.orocrm.com were noticed. Their reason - php script and js script The give script sends information about OroPlatform to remote server, also load a strange js script.
Fix order by the time period
Order by the time period was broken by commit (OroPlatform 2.6.0): https://github.com/oroinc/platform/commit/5d9e5d1852aa82fb538710bfb0e4dcbc0b9b19b5
Cron run in UI
Handle jobs exception
You can see all critical errors that occurred during execute job in UI.