Skip to content

Releases: remp2020/crm-application-module

2.1.1

19 Dec 17:54
Compare
Choose a tag to compare
  • Changed return types of DI factory interfaces from type hints to actual return types to comply with nette/di v3.1 deprecations. remp/crm#2692

2.1.0

25 Nov 14:05
Compare
Choose a tag to compare
  • BREAKING: Changed ApplicationConfig->initAutoload() to not load configs from cache if cache expiration is set to zero. remp/crm#2605
  • Added LazyWidgetManager to replace ineffective WidgetManager. remp/crm#2075
    • Update your modules which register widgets by now deprecated WidgetManager and use LazyWidgetManager instead.
    • Update your widgets which extends now deprecated BaseWidget and use BaseLazyWidget instead.

2.0.0

26 Aug 13:40
Compare
Choose a tag to compare
  • 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 from Kdyby\Translation\DI\TranslationExtension to Contributte\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 to Contributte\Translation\DI\TranslationProviderInterface. You'll need to alter getTranslationResources() signature based on the interface.
    • After all the changes, remove the cache in the temp/nette/cache/* folder.
  • 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.
    • 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.
  • Added new localizedDate filter to format dates with locale. Uses locale 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 version 2.11.5. remp/crm#2511
  • Added new PreviousNextPaginator paginator, because of VisualPaginator 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 to NotificationEvent to localize sent notifications. remp/crm#2533

1.2.1

30 Jun 09:16
Compare
Choose a tag to compare
  • Fixed issues with filter registration appearing after latte/latte update to version 2.11.5. remp/crm#2511

1.2.0

30 Jun 09:16
Compare
Choose a tag to compare
  • Added option to run one selected seeder with command applicaton:seed. remp/crm#2477
  • Added support for date filter to GoogleBarGraphGroup and GoogleLineGraphGroup. remp/crm#2450

1.1.0

02 Jun 06:41
Compare
Choose a tag to compare
  • IMPORTANT: Method Crm\ApplicationModule\User\UserDataRegistrator::generate() now doesn't include key of user data provider if data() method returned null. remp/crm#2460
    • If you don't need to return/cache any user data from your provider, return null instead of array content.
  • 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 in BasePresenter 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

01 Jun 21:37
Compare
Choose a tag to compare
  • Fixed "Undefined class constant 'NAMESPACE_SEPARATOR'" error caused by (now forked) rootpd/translation library.
  • Fixed "use the addFilterLoader()" user deprecation present after the latest latte update.

1.0.2

06 Apr 10:34
Compare
Choose a tag to compare
  • Removed $_SERVER['SHLVL'] check to determine if we're in CLI or running web request. remp/crm#2375

1.0.1

31 Mar 18:06
Compare
Choose a tag to compare
  • Fixed dependency stability issue caused by kdyby/translation library.

1.0.0

31 Mar 08:36
Compare
Choose a tag to compare

Changelog

  • BREAKING: Removed deprecated handling of utm_params in favor of rtm_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#2177
    • POST requests are not redirected anymore to avoid stripping POST parameters (redirect is done using GET).
  • 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 extending FrontendPresenter. 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.
  • Fixed CLI resolution inconsistency between Core and ApplicationManager. 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() from Crm\ApiModule\Response\ApiResponseInterface to Tomaj\NetteApi\Response\ResponseInterface.
    • Changed deprecated Crm\ApiModule\Api\JsonResponse to Tomaj\NetteApi\Response\JsonApiResponse.

Nette 3.0

  • BREAKING: Update Nette composer packages from Nette v2.4 to Nette v3.0. remp/crm#1979
  • Changed Compiler::loadDefinitions() (deprecated) to CompilerExtension->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 and Selection 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().
  • 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 to Nette\Application\UI\Template. remp/crm#1979
  • Moved Nette\Configurator to Nette\Bootstrap\Configurator. remp/crm#1979
    • Used in Core.php. If you have own Core implementation, check (and fix) import of Configurator.
  • Changed deprecated Nette\Caching\IStorage to Nette\Caching\Storage. remp/crm#1979
  • Changed deprecated Nette\Database\Context to Nette\Database\Explorer. remp/crm#1979
  • Changed deprecated Nette\Database classes. Nette\Database\IRow and Nette\Database\Table\IRow are deprecated. Using Nette\Database\Table\ActiveRow instead. remp/crm#1979
  • Changed deprecated Nette\Localization\ITranslator to Nette\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 to Nette 3.1 and newest version of extension, Multiplier stopped working. remp/crm#1979
  • Updated kdyby/translation to dev-master. No tagged release (from september 2019) works with Nette 3.1. Fortunately dev-master works. Will be switched to contributte/translation in near future (remp/crm#2190). remp/crm#1979
  • Changed DataRow (which extended deprecated Nette\Database\Table\IRow) to ActiveRowFactory (which returns ActiveRow. remp/crm#1979
  • Changed injecting of \Crm\ApplicationModule\Graphs\GraphData to automatic DI instead of manual load. remp/crm#1979