-
Notifications
You must be signed in to change notification settings - Fork 0
Add simulation list to MEModel detail view #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a comment,
I think this should change after you update the assetLabel in entitycode, so i will approve it after
src/components/simulate/SimulationDetails/SimultationConfigurationTab.tsx
Outdated
Show resolved
Hide resolved
This already contains the label changes See:
|
for this one, i just remember that the config file name should be in the domain definition in the asset property export const SingleNeuronSimulation: EntityCoreTypeConfig<ISingleNeuronSimulation> = {
group: 'simulations',
title: 'Single Neuron Simulation',
legacyType: DataType.SingleNeuronSimulation,
type: EntityTypeEnum.SingleNeuronSimulation,
slug: EntitySlug.SingleNeuronSimulation,
isBookmarkable: true,
api: {
config: {
allowedFacets: true,
allowedParams: 'all',
},
query: {
list: getSingleNeuronSimulations,
one: getSingleNeuronSimulation,
create: createSingleNeuronSimulation,
},
},
explore: {
basePrefix: 'simulate',
routePrefix: 'simulate',
},
asset: {
extension: 'application/json',
**configfile: 'single_neuron_simulation_data',**
},
} as const; |
TBH I don't like those massive config files, kind of over abstraction, and makes it inflexible when some data deviates from the config and makes harder to make changes as devs ( also future devs) need to learn where everything goes. I would've favoured a simpler, more procedural approach. But will make the change for consistency. |
I get your point about abstraction, but I don’t think this config setup limits flexibility. You can still extend the object directly or add extra logic outside of it in the domain file when needed. |
No description provided.