Releases: remp2020/crm-application-module
Releases · remp2020/crm-application-module
2.1.1
2.1.0
- BREAKING: Changed
ApplicationConfig->initAutoload()
to not load configs from cache if cache expiration is set to zero. remp/crm#2605 - Added
LazyWidgetManager
to replace ineffectiveWidgetManager
. remp/crm#2075- Update your modules which register widgets by now deprecated
WidgetManager
and useLazyWidgetManager
instead. - Update your widgets which extends now deprecated
BaseWidget
and useBaseLazyWidget
instead.
- Update your modules which register widgets by now deprecated
2.0.0
- BREAKING: Changed PHP version requirement to 8.0. remp/crm#2519
- BREAKING: Changed Latte version from v2 to v3. remp/crm#2519
- BREAKING: Changed library used for translations. remp/crm#2519
- In your
config.neon
, please change registered translation extension fromKdyby\Translation\DI\TranslationExtension
toContributte\Translation\DI\TranslationExtension
. - In your
config.neon
, change the configuration of translation extension to following snippet and alter where necessary:
translation: dirs: - %appDir%/lang locales: default: en_US whitelist: [en_US, sk_SK, cs_CZ] localeResolvers: - Contributte\Translation\LocalesResolvers\Parameter - Contributte\Translation\LocalesResolvers\Router loaders: neon: Contributte\Translation\Loaders\Neon yml: Symfony\Component\Translation\Loader\YamlFileLoader
- If you implement your own DI extensions with translations, change the implemented translation interface from
Kdyby\Translation\DI\ITranslationProvider
toContributte\Translation\DI\TranslationProviderInterface
. You'll need to altergetTranslationResources()
signature based on the interface. - After all the changes, remove the cache in the
temp/nette/cache/*
folder.
- In your
- BREAKING: Changed signature of methods in
\Crm\ApplicationModule\Graphs\Scale\ScaleInterface
, new types added. remp/crm#1309- If you implement your own scale (probably not), you need to update the signature of implementing methods. Otherwise this doesn't affect you.
- Method
getKeys
now has string types:public function getKeys(string $start, string $end)
. - Method
getDatabaseData
now has string$tag
parameter:public function getDatabaseData(Criteria $criteria, string $tag)
.
- Added support for measurements - precalculated values which can be used in charts or any kind of period-based statistics. remp/crm#1309
- IMPORTANT: Some charts now use measurements as the source of data. To make sure they work correctly, please:
- Run
php bin/command.php application:calculate-measurement
once after the deploy to calculate all values for currently active measurements. - Add `php bin/command.php application:calculate-measurement --daily" to be run daily to update values of currently active periods.
- Run
- Measurements are meant to replace expensive on-the-fly calculations, for example number of active subscribers each day/week/month/year. Measurements generate the values for every day/week/month/year and can be further grouped by an extra parameter - for example new registrations by source/channel/etc.
- IMPORTANT: Some charts now use measurements as the source of data. To make sure they work correctly, please:
- Added new
localizedDate
filter to format dates with locale. Useslocale
stored in user account for logged-in users and app default locale for others. remp/crm#2488 - Fixed issues with filter registration appearing after
latte/latte
update to version2.11.5
. remp/crm#2511 - Added new
PreviousNextPaginator
paginator, because ofVisualPaginator
performance issues. remp/crm#2512 - Fixed getting Hermes tasks based on priority. Queues were sorted in the order in which they were registered and not based on queue priority. remp/crm#2548
- Added
locale
parameter toNotificationEvent
to localize sent notifications. remp/crm#2533
1.2.1
1.2.0
1.1.0
- IMPORTANT: Method
Crm\ApplicationModule\User\UserDataRegistrator::generate()
now doesn't include key of user data provider ifdata()
method returnednull
. remp/crm#2460- If you don't need to return/cache any user data from your provider, return
null
instead of array content.
- If you don't need to return/cache any user data from your provider, return
- Removed
$_SERVER['SHLVL']
check to determine if we're in CLI or running web request. remp/crm#2375 - Updated translations.
- Fixed
YearScale
graph keys. remp/crm#2315 - Changed
$locale
inBasePresenter
to persistent. URL parameter is now kept throughout user's visit showing language intended by original URL. remp/crm#2390 - Added canonical URL to the base layouts. remp/crm#2449
1.0.4
1.0.2
1.0.1
1.0.0
Changelog
- BREAKING: Removed deprecated handling of
utm_params
in favor ofrtm_params
. remp/crm#2354- This change was handled by REMP tools internally since December 2020 and UTM params were already deprecated.
- Changed redirect behaviour when doing autologin for POST requests in
FrontendPresenter
. remp/crm#2177POST
requests are not redirected anymore to avoid stripping POST parameters (redirect is done usingGET
).
- Fixed
WeekScale
wrong last week of the year usage. E.g. 2021-01-01 was interpreted as week nr. 53 of 2021. - Added
FrontendRequestEvent
which is emitted for every action of presenters extendingFrontendPresenter
. remp/crm#2273 - Added
symfony/yaml
to support use of YAML files for translation strings. remp/crm#2276 - Changed translation files. remp/crm#2276
- Fix EOF newlines.
- Move misplaced CZ translations into [AdminModule].
- Switch tabs to 4 spaces. Weblate can parse only YAML format (doesn't support tabs).
- Change extension from NEON to YML.
- Updated
latte/latte
to v2.11. remp/crm#2335- This version triggers deprecation notices for template filters which separate parameters with
:
delimiter. If this is your case, use,
to separate filter parameters.
- This version triggers deprecation notices for template filters which separate parameters with
- Fixed CLI resolution inconsistency between
Core
andApplicationManager
. remp/crm#2350 - Fixed sourcing of RTM params to session from cookies. remp/crm#2354
- Changed API handlers (non breaking). remp/crm#2342
- Changed return type of
handle()
fromCrm\ApiModule\Response\ApiResponseInterface
toTomaj\NetteApi\Response\ResponseInterface
. - Changed deprecated
Crm\ApiModule\Api\JsonResponse
toTomaj\NetteApi\Response\JsonApiResponse
.
- Changed return type of
Nette 3.0
- BREAKING: Update Nette composer packages from Nette v2.4 to Nette v3.0. remp/crm#1979
- Changed
Compiler::loadDefinitions()
(deprecated) toCompilerExtension->loadDefinitionsFromConfig()
. remp/crm#1979 - Added return types to implementations where Nette interfaces changed. remp/crm#1979
- Fixed renamed Nette extension; from
\WebChemistry\Forms\Controls\DI\MultiplierExtension
to\Contributte\FormMultiplier\DI\MultiplierExtension
. remp/crm#1979 - Added return types to
ActiveRow
,DataRow
andSelection
implementations after interfaces changed. remp/crm#1979 - Fixed
ApplicationMountManager
. Call parent constructor to preset filesystems when Nette container is initialized. remp/crm#1979 - Removed calling parent constructor from widgets. Constructor was removed from
Nette\ComponentModel\Component
. remp/crm#1979 - Fixed issue caused by changes in internal
Nette\DI\Helpers::autowireArguments()
. remp/crm#1979- Our
Crm\ApplicationModule\Widget\BaseWidget::createComponent()
depends on it for setting component arguments. - Solution taken from
\Kdyby\Autowired\AutowireComponentFactories::createComponent()
.
- Our
- Updated
netteForms.js
to newest version used by nette/forms 3.0.*. remp/crm#1979 - Updated conditions expecting false from
Selection::fetch()
. Null is returned instead of false after update to Nette 3.0. remp/crm#2142
Nette 3.1
- Changed the way how routes are added to router. From array
$router[] = new Route()
to method call$router->addRoute()
. remp/crm#1979 - Changed deprecated
Nette\Application\UI\ITemplate
toNette\Application\UI\Template
. remp/crm#1979 - Moved
Nette\Configurator
toNette\Bootstrap\Configurator
. remp/crm#1979- Used in
Core.php
. If you have ownCore
implementation, check (and fix) import ofConfigurator
.
- Used in
- Changed deprecated
Nette\Caching\IStorage
toNette\Caching\Storage
. remp/crm#1979 - Changed deprecated
Nette\Database\Context
toNette\Database\Explorer
. remp/crm#1979 - Changed deprecated
Nette\Database
classes.Nette\Database\IRow
andNette\Database\Table\IRow
are deprecated. UsingNette\Database\Table\ActiveRow
instead. remp/crm#1979 - Changed deprecated
Nette\Localization\ITranslator
toNette\Localization\Translator
. remp/crm#1979 - Changed deprecated
{ifCurrent 'link'}
latte tag to{isLinkCurrent('link')}
latte function. remp/crm#1979 - Fixed integration of
contributte\forms-multiplier
extension. After update toNette 3.1
and newest version of extension, Multiplier stopped working. remp/crm#1979 - Updated
kdyby/translation
todev-master
. No tagged release (from september 2019) works with Nette 3.1. Fortunatelydev-master
works. Will be switched tocontributte/translation
in near future (remp/crm#2190). remp/crm#1979 - Changed
DataRow
(which extended deprecatedNette\Database\Table\IRow
) toActiveRowFactory
(which returnsActiveRow
. remp/crm#1979 - Changed injecting of
\Crm\ApplicationModule\Graphs\GraphData
to automatic DI instead of manual load. remp/crm#1979