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

add button for feature combinations #44

Merged
merged 2 commits into from
Mar 9, 2023
Merged

add button for feature combinations #44

merged 2 commits into from
Mar 9, 2023

Conversation

johenglisch
Copy link
Contributor

The button exists now (see picture -- I haven't deployed it yet).

grambank-combine-features

@HedvigS I'm not entirely sure where the button should actually go on the page. For now I put it at the bottom of the description section (right above the map). So, if you want me to move it somewhere else, just tell me.

Also, which features should be combinable here? All of them or only the ones listed in Related features (this branch does the former rn)?

@xrotwang The code in the template feels a bit weird (like, the part where I import DBSession into the template). Is there a more idiomatic way to do this that I'm missing?

@johenglisch johenglisch linked an issue Mar 6, 2023 that may be closed by this pull request
@HedvigS
Copy link
Collaborator

HedvigS commented Mar 6, 2023

Thanks @johenglisch !

Let's leave the position as is now, if anyone has opinions I'll figure out if they're worthwhile and let you know :)

All features should be combinable please :)

Copy link
Member

@xrotwang xrotwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of importing DBSession, you can use request.db in the template, see https://github.com/clld/clld/blob/837351371d150f43c4945140d3ec1f2027375f6a/src/clld/web/app.py#L65-L72

@johenglisch
Copy link
Contributor Author

Thanks! So, as far as I'm concerned this is ready to be merged.

@johenglisch johenglisch merged commit ead7699 into master Mar 9, 2023
@johenglisch johenglisch deleted the combine-button branch March 9, 2023 12:18
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.

Combining features
3 participants