Magento 2: show list of all customers in custom grid

I created modal window similar functionality of when click on Add related products on product edit page, now in the modal window I need a list of all customers in grid. Currently its showing Error: Fatal error: Uncaught Error: Call to a member function setPageSize() on null in /var/www/html/magento/vendor/magento/module-ui/DataProvider/AbstractDataProvider.php:220 Stack trace: #0 Here is my…

Details

nginx reverse-proxy a single URL to a custom server single URL

I have designed a page on a static page provider, and I’d like to make it available when browsing a domain I own www.example.org (which hits a nginx server) Target : https://www.example.org/a/b –> https://static-page-provider.com/c The user types https://www.example.org/a/b in the URL The nginx proxy I own hosted at https://www.example.org receives the request on the exact…

Details

Having problem with a nested controller spec with RSpec post rails 5

Given this contrived example: RSpec.describe City::Road::HouseController, type: :controller do let(:house) { create :house } describe ‘index’ do context ‘a request is received without a valid basic-auth header’ do it ‘renders unauthorized’ do before { method_that_unsets_basic_auth_header } get(:index, params: { house_id: house.id }) expect(response).to have_http_status(:unauthorized) end end end end with the following routes: namespace :city do…

Details

VSCode, MacOS Catalina – doesn’t stop on breakpoints on PHP debug

Problem below held me back for multiple days – solution found so glad to share it. I upgraded to a new MacBook running MacOS 10.15.2 Catalina. After installing PHP and VSCode, the latter failed to stop at breakpoints. I was able to use the pre-installed Apache server, installed PHP 7.4 i.a.w. https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions. Installed xdebug as…

Details

How to avoid mutating of a state variable in an Akka actor with inherited behavior?

I have some Akka actors with a common behavior. This common behavior is defined in a trait: trait CommonBehavior { this: Actor => var history: List[String] = Nil protected def commonActions: Receive = { case Action1 => history = “action1” :: history.take(99) case Action2 => history = “action2” :: history.take(99) case GetHistory => sender() !…

Details