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

Alter AttributeError('elements already has max number of allowed elements, [5]') #4

Open
CarKsby opened this issue Aug 20, 2021 · 1 comment

Comments

@CarKsby
Copy link

CarKsby commented Aug 20, 2021

Hey!

I'm really enjoying this project while making an internal slack bot for my workplace. It's saved a lot of the headache of handling these giant JSON blocks.

I was wondering if you would be alright with easing up/straight up removing/making configurable this catch in view.py for the Context class/builder subclass, it feels a bit weird considering the template blocks on Slack Block Builder has an example with 6 elements in a context block.

For context, I'm trying to build a block array that looks like this.

This needs 3 * amount of people in the context element array, ideally I'd go up to 9 elements, which might be a bit too close for comfort, but I'd like the option to try, at least.

I'd be happy to pop a pull request in if you're happy with my reasoning and if there's not a technical limitation that caused 5 to be the cut-off.

Thanks,
Carter

@escamez
Copy link
Owner

escamez commented Dec 14, 2021

Hey!!

Sorry about this huge delay, somehow I didn't enabled notifications and never got your proposal. I'm gonna check if it's possible and in case it is, sure, more than welcome to add whatever makes this easier.

I did this library 'cause I had to implement a kind of complicated bot, and it was such a pain to deal with so many json blocks, beside that testing was so hard.

Thanks for your comments. I'll give you an answer between tonight and tomorrow, although I guess you already checked the doc about it. Once again sorry about it

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

No branches or pull requests

2 participants