Comments (3)
@thiagomajesk you're right actually. I added this function specifically so users can use it instead of the private one that Kaffy uses internally. Feel free (and safe?) to use it since it should not change or go away. The original idea was that Kaffy.Utils
should have been a public module, but it became a "dumpster" of internal utility functions.
I just got back to maintaining Kaffy again and the code needs to be cleaned up and re-organized 🙂
Hopefully things will get much better in the coming weeks 🙏🏻
from kaffy.
Thanks for reporting this issue @thiagomajesk
I agree that Kaffy should provide a much better error message when there's a missing resource.
Kaffy master has recently added Kaffy.Utils.auto_detect_resources/0
which returns the list of auto-detected resources (Kaffy's attempt at discovering the list of schema/admin modules).
v0.10.0 final will probably be released by the end of this month.
from kaffy.
Hi @aesmail, thank you for this awesome library.
Kaffy master has recently added Kaffy.Utils.auto_detect_resources/0 which returns the list of auto-detected resources (Kaffy's attempt at discovering the list of schema/admin modules).
I'm aware of this function... My problem with using it though is relying on a non-public API 😅 - @moduledoc false
usually means it's an implementation detail that could change. Are you interested in perhaps moving this function and exposing it in another module as a user-facing API?
from kaffy.
Related Issues (20)
- [FEATURE-REQUEST] Bulk Delete HOT 1
- [FEATURE-REQUEST] custom_index_query should receive all rather than paged HOT 1
- [FEATURE-REQUEST] Have a way to call a custom attribute in show/edit/create
- [FEATURE-REQUEST] - resolve deprecation warnings in Phoenix 1.7 HOT 1
- [FEATURE-REQUEST] allow to modify auto-detected resources HOT 1
- [BUG] :readonly option not working HOT 1
- [FEATURE-REQUEST] Hide action buttons in show template HOT 1
- [BUG] Crash occurs when a schema has a `:page` field or association
- [FEATURE-REQUEST] Config option to turn off bulk delete HOT 6
- [BUG] readonly also not working with dropdown fields HOT 1
- [BUG] Resource creation errors when schema contains {:array, Ecto.Enum} field ((FunctionClauseError) no function clause matching in String.length/1) HOT 2
- [BUG] create action broken HOT 3
- [BUG] (UndefinedFunctionError) function :ping_erlang.__info__/1 is undefined or private HOT 2
- How can I make Main Dashboard widgets? HOT 2
- How do I change the `default_actions/1` for all schemas at once?
- [Feature] Phoenix HTML 4.0 not supported HOT 17
- [FEATURE-REQUEST] Role-based admins HOT 2
- [BUG] Compilation error on Elixir 1.17 HOT 1
- Release new Version for Phoenix.HTML 4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaffy.