Skip to content

Conversation

Ivanov-Anton
Copy link
Contributor

@Ivanov-Anton Ivanov-Anton commented Feb 3, 2021

To prevent error in build path for ajax request when we have namespaced classes
solves #29 issue

  • add test that have namespaced class name and use resource settings

@Ivanov-Anton Ivanov-Anton force-pushed the #29_read_the_path_from_the_admin_resource branch 6 times, most recently from 33ddbbf to 8b224b6 Compare February 3, 2021 22:43
@Ivanov-Anton Ivanov-Anton marked this pull request as draft February 3, 2021 22:44
@Ivanov-Anton Ivanov-Anton force-pushed the #29_read_the_path_from_the_admin_resource branch 3 times, most recently from f3283be to cd8beef Compare February 4, 2021 07:49
@Ivanov-Anton Ivanov-Anton marked this pull request as ready for review February 4, 2021 07:52
@Ivanov-Anton
Copy link
Contributor Author

@tf Best Tim

Ivanov-Anton added 2 commits February 4, 2021 12:35
To prevent error in build path for ajax request when we have namespaced classes
solves codevise#29 issue
@Ivanov-Anton Ivanov-Anton force-pushed the #29_read_the_path_from_the_admin_resource branch from cd8beef to fac26c8 Compare February 4, 2021 10:35
tf added 2 commits February 4, 2021 12:59
Adapt test case for namespaced module to actually fetch the options to
ensure that the constructed route actually works.
No need to fall back to constructing it via `polymorphic_path` since
if we cannot fine the admin resource to get `route_collection_path`,
we will also not be able to use to determine `ajax_resource_class`.
@tf
Copy link
Member

tf commented Feb 4, 2021

I pushed two changes: One to align the new end to end test with the way the existing one worked. And another to simplify the construction of the route. Can you check if I broke anything in your setup?

@Ivanov-Anton
Copy link
Contributor Author

Good job Tim

@Ivanov-Anton
Copy link
Contributor Author

@tf, I have no more offers, everything is fine

@tf tf merged commit 08f6506 into codevise:master Feb 4, 2021
@tf tf added this to the v1.4 milestone Feb 4, 2021
@tf
Copy link
Member

tf commented Feb 4, 2021

Great! Released as 1.4. Thank you for your work on this issue! 🎉

@tf tf linked an issue Feb 4, 2021 that may be closed by this pull request
@Ivanov-Anton Ivanov-Anton deleted the #29_read_the_path_from_the_admin_resource branch February 4, 2021 12:16
glebtv pushed a commit to rs-pro/activeadmin-tom_select that referenced this pull request Aug 19, 2025
…om_the_admin_resource

Improve build path for ajax request
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.

Not support resource class that placed in module

2 participants