error – Something went wrong with processing the default view and we have restored the filter to its original state. Also unable to find products with no SKU

Magento 2.4.1

I’ve done a Migration from Magento 1.9.4.0 to 2.4.1. There is a total of 1750 products.

I went to:

  • Catalog –) Products, select 200 per page and was browsing by using the right arrow. It takes longer than expected for the next page of products to load and then when going from page 6 to page 7 of products (out of 9 total) – out of nowhere – there is a pop-up which says:

Attention Something went wrong.

If you click OK – you get the following Error on the page itself:

Something went wrong with processing the default view and we have
restored the filter to its original state.

When this happens, that specific user is corrupted somehow and you always get this Error when going into products.

I tried deleting all Cache and re-indexing but it doesn’t help nor does logging out and logging back in.

I found articles where they suspect not having SKUs on products may cause this and adding SKUs to those products might fix it. When searching for products with NO SKUs via SQL however, I always get the following Error:

#1146 – Table ‘database_name741.catalog_product_entity’ does not exist.

I am not that good with running SQL queries so I was just copying and pasting some from this article here:

https://gist.github.com/tegansnyder/8464261

Any idea what I can do to identify products with no SKU or how else to fix this problem?

input fields – How to state valid characters are alphanumeric and ‘all keyboard symbols’?

I don’t think you need to overthink it too much, most users understand the concept of passwords these days.

I would suggest something simple like this can work:

A valid password can only contain letters, numbers and special characters.

I would suggest making “special characters” a hyperlink (as illustrated by the bold style above). This can either show a pop-up, or expand a panel, which lists all the valid characters.

This approach keeps the form simple and uncluttered and will satisfy the majority of your users, but it also allows for the “less knowledgeable” users to get the extra information they need with a simple click.

Pass and update State Value from other function Flutter Hook Widget

I am new to Flutter hooks and I have requirements that I have to use HookWidget instead of StatefulWidget. As I know, useState can only be declared within the build function.

Widget build(BuildContext context) {
    final selectedBook = useState("");
    return Container(
       child: _buildBookListContainer(context)
    )  
}

Widget _buildBookListContainer(BuildContext context) {
  //I will want to update the state value or read the state value in the child function
  //how do I do that?
  //Example: selectedBook.value = "xxx";
}

I tried passing down the state value as function arguments but it will not work. May I know that is it all HookWidget class will just write all components inside the build function without refractoring?

artificial intelligence – AI Search – State in the toy vacuum problem

I have been reading about AI search, specifically the toy vacuum cleaner problem and I would like to code an example of this but I am finding the description of the state hard to get my head around.

Is the state something you are supposed to hard code in advance in AI search? This seems unlikely due to the possible number of potential states for a larger problem, so I am not sure how I can represent the state in a problem like this, or any other really.

In the vacuum problem the states are ‘dirt left’, ‘dirt right’ and ‘vacuum position’ and an action such as ‘move left’, ‘move right’ or ‘suck’ will leave the problem in a new state but how do you represent these changes?

Would state be an object with boolean properties for the dirt and an int value for the vacuum position of either 0 or 1 depending on which array element it is looking at?

In the context of a map program trying to get to somewhere I do understand the state might be In(New York) but I what I am struggling with is how I would represent something like that in code, or perhaps a maze where the current state might be the x, y coordinate of the square the agent is currently in, again would an object be the right thing to use to model state?

react – State não atualiza o outro state onde esta sendo referenciado

Eu tenho um state que eu estou atualizando desta forma

componentWillReceiveProps(nextProps) {
    this.setState({ seriesDataFormatted: chartData(nextProps.chartData).seriesChartValues }, () => console.log(this.state));
  }

o estado esta assim, porém quando eu dou console no estado logo após setar o state a serie não recebe o novo valor o que pode ser ?

this.state = {
    seriesDataFormatted: (),
    options: {
          series: this.seriesDataFormatted,
    }
}

complexity theory – State whether the language is in $R$, $RE$, etc. The intuition for the solution

The intuition is that finite languages are very simple in the sense that throwing a finite number of words from a language does not affect membership in $text{R}$ or in $overline{text{RE}}$, etc. Therefore, since $L^{geq k}$ is the result of throwing a finite number of words from $L$, we get that:

  1. $L(M)^{geq k} in text{RE}$, and
  2. $overline{HP}^{geq k} notin text{RE}$.

So the language $L = { langle M rangle: exists k: L(M)^{geq k} = overline{HP}^{geq k}}$ must be empty.


Formally speaking, we have the following claims:

Claim 1: For every non-trivial language $A$, and every finite strict subset $Bsubsetneq A$, it holds that $A leq_m A setminus B$.

Hint for the proof of claim 1: $B$ is finite and thus decidable. Therefore, given input $x$ for the reduction, we can check whether $xin B$. Then you can proceed easily. Think where to map inputs $x$ from $B$, and where to map inputs $x$ from $overline{B}$.

We also have the following similar claim which could be useful.

Claim 2: For every non-trivial language $A$, and every finite strict subset $Bsubsetneq A$, it holds that $Asetminus B leq_m A $.

Given the above claims, we’re done. Indeed, $overline{HP} notin text{RE}$, and for every $k$, $overline{HP}^{geq k} = overline{HP}setminus {win overline{HP} : |w| < k}$. That is, $overline{HP}^{geq k}$ equals a non-trivial infinite language minus a finite subset, and so by claim 1, $overline{HP}^{geq k} notin text{RE}$. Also, it holds that $L(M)^{geq k} in RE$ for every machine $M$ (this is easy, you can prove that directly using standard closure properties and the fact that $L(M)^{geq k} = L(M)setminus { win L(M): |w| < k}$. Alternatively, you can use claim 2 but you have to be careful regarding the edge cases where $L(M)$ is trivial, etc.). Therefore, it cannot be the case that there is a machine $M$ with $L(M)^{geq k} = overline{HP}^{geq k}$.

javascript – Is possible set state from parent and set state from children at same element?

I have a component and I need to update the value from parent (ok), but if the user change the value of the input (children / functional component), I need set this value without pass to parent to re-render children.

See this example:
https://codesandbox.io/s/boring-thunder-qvibf?file=/src/App.js

Follow this steps:

  1. Set some value on input and see console log
  2. Click on button, the input receive new value
  3. Change value on input again
  4. Click on button, why doesn’t work again and set value to input?

I need independent children (functional component or class component), and sometimes I need use parent to set children value, but also keeping the children to change his own state, this is possible?

amazon web services – AWS Step Functions – Utilize empty Map state output when no iterations occur

I have a workflow with 3 steps:

  1. Task – Upload N files
    • Produces array of N job definitions to be used as input to Step 2 map state
  2. Map – process each job
    • Due to map state, this is executed N times
  3. Task – do some other thing

What I would like is to only do Step 3 if any iterations occur in Step 2. The way this is designed, Step 1 usually produces no output, so Step 2 is basically skipped.

I’ve noticed that in the scenario I’ve outlined, the output from Step 2 is just [], where as normally it contains a whole lot of information about the iterations. Is it possible to perform this kind of workflow?