FreedomCoop / valuenetwork

Fork coming from NRP-Sensorica to use and work for FREEDOM COOP
http://fair.coop
GNU Affero General Public License v3.0
31 stars 12 forks source link

Problems creating a new exchange type and resource type in testocp #218

Open bhaugen opened 7 years ago

bhaugen commented 7 years ago

@bum2 Here are the steps so you can reproduce them:

Conclusion: the problems were not exactly bugs (the system did what it was coded to do) but was difficult to follow and often surprising in a bad way.

bhaugen commented 7 years ago

P.S. my new exchange type appears here,, too: https://testocp.freedomcoop.eu/accounting/change-exchange-type/43/

And it also appears as a previously used exchange type here: https://testocp.freedomcoop.eu/work/agent/96/exchanges/

bhaugen commented 7 years ago

Some suggestions for improvement, more to come:

bhaugen commented 7 years ago

Retesting:

bum2 commented 7 years ago

you are using your superuser account, and so you can edit any type (like me)... with a normal user you only can edit the types you've created..

bhaugen commented 7 years ago

you are using your superuser account, and so you can edit any type (like me)..

Got it. As I said above, minor anyway. I wouldn't have raised an issue about that one.

bhaugen commented 7 years ago

Note: I edited the comment two above this one. Wasn't clear before that I had saved another new resource type, duplicating the whole sequence from the first post on this issue.

bhaugen commented 7 years ago

@bum2 One more way you could improve the situation, I think easier than my comment upthread, would be to separate the creation of new resource types from the creation of a new exchange type. That would avoid a page reload losing all of your selections in general-app tree climbdowns, and make it clear what happened with the new resource type. We'll need a way for projects to create new resource types anyway. You could just add a link to the resource type creation here, instead of doing it 3/4 of the way through the exchange type creation and losing the thread of selections.

bum2 commented 7 years ago

the selections are lost because i've placed a js to clear the fields, meanwhile, because the behavior when there are selections onload it's not yet working good... was a fast and bad solution to start using the app without js errors... I understand is very important to keep the selections, and asap i will try to debug the js issues and let the fields filled when they should. Also the behaviors in that page should be better via ajax in separate forms as you said (now is all the same form, reloading page). What we have now was the fastest way i found to start doing the things, sometimes with rude codes which have lot of room for improvement. To improve the page, is pending:

I thought initially to have a page only for resource-types, but later i tried to merge that into the Resources page and finally i placed it in the Exchanges page as a modal. The same modal can be now placed in the resources page or wherever is needed the 'new resource type' creation.

bhaugen commented 7 years ago

What we have now was the fastest way i found to start doing the things, sometimes with rude codes which have lot of room for improvement.

I totally understand.

fosterlynn commented 7 years ago

On any of this pending tasks or any of the todos in the pad, any help is very welcome!

@bum2 My advice is to acknowledge right now that your release is not going to be ready for the training at the hackathon, no matter who helps you. That will give you time to regroup around the training and do some preparation to train on the code in master. You will have to explain that this is older (and possibly incomplete) code, there is a new release coming, and you could explain the differences. It will be fine. It will be much better than trying to train on code that isn't ready.

If you wait until the last minute, it will be a lot harder for whoever is giving the training to prepare. And if you use master, you will be able to give people a taste of how they can actually manage their projects in OCP, even if it is not your longer term vision.

The hackathon itself can proceed on a different code base than the training. If it is better on your branch, then you all can make that decision. Coding can start from anywhere.

bhaugen commented 7 years ago

I have to agree with Lynn here. I don't think there is much I can do in the next two days that will make much difference, and I have a bunch of other things I need to do as well. I'd need to study your existing code and by then, the time is gone.

Then let's see what everybody wants to do in the hackathon, and make some decisions for the future.

fosterlynn commented 7 years ago

@bum2 by the way, I totally understand how you feel about it. I have done that same thing in the past, more than once, just trying to crunch it through even when the odds are low. It is pretty hard to step back in the middle of a deep coding focus to take stock, and look at what would have the best consequences for the whole process.

Also, if you make this decision in time, this would let you relax a little and enjoy doing the hackathon work, and connecting with those people, instead of having to keep crunching on this. You will be the person closest to the code, so your full involvement in the hackathon work would be useful.