Skip to content
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

Cleaner and uniform market declaration in feature tests #3114

Conversation

ValentinTrinque
Copy link
Contributor

We were using indexes to iterate through the table, which required to update all the indexes when adding or removing a column.

To ease the maintenance of suche table, we introduce a generic layer to get the column by name, with appropriate type conversion.

This makes us switch from the indexes to column name.

To makes things even clearer, we add a specific layer on top of the generic one and abstract away column names into accessors.

Doing so requires us to uniformize the column name across all tests, which is a good thing.

@ValentinTrinque ValentinTrinque self-assigned this Mar 8, 2021
@ValentinTrinque ValentinTrinque force-pushed the feature/3098-rework-market-declaration-feature-tests branch from 473783e to dab1e9c Compare March 9, 2021 09:10
We were using indexes to iterate through the table, which required to update all the indexes when adding or removing a column.

To ease the maintenance of suche table, we introduce a generic layer to get the column by name, with appropriate type conversion.

This makes us switch from the indexes to column name.

To makes things even clearer, we add a specific layer on top of the generic one and abstract away column names into accessors.

Doing so requires us to uniformize the column name across all tests, which is a good thing.
@ValentinTrinque ValentinTrinque force-pushed the feature/3098-rework-market-declaration-feature-tests branch from dab1e9c to e4bf65c Compare March 9, 2021 09:23
@ValentinTrinque ValentinTrinque merged commit 7f0fc3c into feature/3097-oudated-fetaure-tests Mar 9, 2021
@ValentinTrinque ValentinTrinque deleted the feature/3098-rework-market-declaration-feature-tests branch March 9, 2021 09:31
@edd edd mentioned this pull request Mar 16, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants