-
Notifications
You must be signed in to change notification settings - Fork 87
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
question: Is ORM
needed?
#151
Comments
I am fine with this change and agree that ORM is not needed. We will either need to make it backward compatible or coordinate closely with amber cli so the templates are updated with the correct major version change. |
I agree, but changing the repo name is kind of painful because it breaks all builds generated with the old repository name. |
How about making a new repository named
Since there are only 2 bug issues and 3 PRs, I think that it is a good opportunity to execute now. 😺 |
What about class User < Granite::Model
end |
I think that's not a problem, github still redirects it for some time and amber is not v1.0.0 yet I propose to change this repo name BTW, I like |
I know Amber isn't 1.0 yet, but I don't think we should be in the habit of abandoning users. The redirect is actually going to make things worse because it stays around long enough for everyone to forget that the old one ever existed and when things break, it's harder to find out what happened. If we want to change the name of the repo, here are the steps I'd recommend following:
After the repo is renamed, changes to the the names of base classes and such can be done incrementally. |
@robacarp I agree, you proposal is very nice 👍 |
@drujensen I really like the @robacarp proposal, I think it would do no harm, because the So, Can you change the name and create WDYT? 😅 |
@robacarp Excellent proposal. 👍 I will rename the repository now but let's hold off on the archived |
Thanks for renaming the repository, I think that paves the way for improvements. I'm going to go ahead and created "the old" granite repo again as |
@robacarp No, I don't think old builds are broken until we create the "old" repository. They should still work, right? |
@drujensen Dang, you're right. It would have. I forgot about the github redirect. I've already created the -orm repo and pushed the latest 0.9.1 code to it, so I'm sure the redirect is dead now. I've been a little paranoid in this thread because I wasted a day or so a couple weeks ago when the github redirect pointing to Garnet from amber-spec or something died and my app wouldn't install shards anymore. The shard command isn't at all helpful with error messages when a shard it's trying to clone doesn't exist anymore, and I've been trying to avoid anyone going through that trouble as much as possible, so I acted without thinking it through. The -orm project is archived, and the readme and other parts of the repo point to this one now. If needed, it can be un-archived and tweaked. I'm happy to see to that maintenance. |
This is now complete and released 0.11.0. #204 |
Hi all, I'm simply wondering why it's named as
Granite::ORM::Base
.For example, ActiveRecord is quite natural.
ActiveRecord::Base
# baseActiveRecord::ConnectionAdapters::PostgreSQLAdapter
# and its adaptersIn Granite
Granite::ORM::Base
Granite::Adapters::Pg
I prefer shorter naming like
Granite::Base
.Furthermore, I prefer
granite
for the repository name if there are no plans to release any othergranite-xxx
projects.Thought?
The text was updated successfully, but these errors were encountered: