Carbon-Farm-Network / app-carbon-farm-network

GNU Affero General Public License v3.0
1 stars 0 forks source link

Offers edit (or import?) not working #133

Closed fosterlynn closed 1 week ago

fosterlynn commented 2 months ago

The CFN started another instance, and used export / import to get the date from their previous one. This is all data they will be using in production, and the goal is to be working with that data going forward. Can't remember all the details of the offers import, but it possibly did not finish, unclear. At the end, they had all the data records, but some quantity data was missing (available quantity, price in a few records). They were manually fixing that data, were able to fix all the available quantities, and some but not all of the prices. There are two zero (or more likely null) resourceQuantity fields in the price intent. So that is the background info.

When they bring up a modal to fix a price, it hangs and won't save. But if they then cancel out of it, the price looks changed on the offers list. And the other zero price is also changed to that price. If they reload the app, both prices are back to zero on the offers list.

Another clue is that the price unit doesn't default on the missing prices. Is it possible that the price reciprocal intent is not there at all, and the edit won't handle that?

fosterlynn commented 2 months ago

Evan deleted the messed up offers, entered them again, all good on both the offers list and the plan. That seems to point to the problem being in import/export.

fosterlynn commented 1 week ago

I did the offers import from what I think is the same file, it was fine. Needs more investigation.

fosterlynn commented 1 week ago

Closing due to layers of confusion on this, on different computers. Will open individual issues if we run into them going forward.