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

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

Saving plan not working #94

Closed fosterlynn closed 6 months ago

fosterlynn commented 6 months ago

Screenshot from 2024-02-16 14-22-24

I did several things, including (from memory) changing quantity on commitment, adding events, moving commitments up and down. [EDIT: before saving the first time, I added a satisfy request item, which created more commitments, one of which had no offers to start it off. Just trying to think of all the conditions....]

fosterlynn commented 6 months ago

Trying changes one at a time.

Changed one order (top one on the first column). Probably had cost. Screenshot from 2024-02-16 15-28-19

LeosPrograms commented 6 months ago

Those console errors have to do with the drag-to-scroll library, not saving. Did the plan hang on 0 out of 29 indefinitely?

fosterlynn commented 6 months ago

Did the plan hang on 0 out of 29 indefinitely?

Yes.

LeosPrograms commented 6 months ago

I suspect this is related to issue #92--if there are no units, resource specifications etc, the plan cannot save. The solution is probably to load those things early and store them, and disallow planning unless they're present.

fosterlynn commented 6 months ago

Unofficial version acfn-1.0.4

Still having trouble saving the plan after it was saved once. It now has everything it needs on the modals, afaict. There are some messages about classifiedAs; the only thing I can think of that might use classifiedAs is the agent network role, but I'm not sure exactly where that lives. Same thing on my and Bob's computer. I have fixed any possible missing data on the cost side, adding offers. I have tried making changes, and making no changes, just saving. A few print screens, in reverse chronological order:

made some changes: Screenshot from 2024-02-20 16-09-04 made no changes: Screenshot from 2024-02-20 15-41-55

fosterlynn commented 6 months ago

Fixed! Difference earlier was I was running in the launcher, Leo was just running straight dev environment.