Rename plugin to addon #41
Loading…
Reference in a new issue
No description provided.
Delete branch "task/rename-plugin-to-addon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to https://github.com/friendica/friendica/pull/4288
Fixes #40
Isn't there some SQL update script?
Not that I know of, this isn't Friendica with its fancy database versioning. Although it would be easier if there was a common Friendica library I could use as a dependency for the directory, it feels a little bit duplicated between the projects.
So do we need some shared Friendica core or should we integrate the directory into the current core?
chuckles I see a wave developing. The dir project was separated to have a less complicate structure then the friendica project IIRC
There are two separate concepts in Friendica. The whole library we built in
src/
, and the controllers and cronjobs we currently have inmod/
. We usually call the library the Framework.The directory doesn't need Friendica controllers but it can leverage Friendica framework, like all the classes in Util for example. Those classes could be in a separate repository that could be included as a dependency by both project. And when we update a Util class, both projects can use the updated version.
We don't need it because both projects work right now, and there isn't any new external need for it. We don't need it as well because there are multiple frameworks around who do the same stuff generally more elegantly, and we probably don't need to publish yet another framework that started as a specific project.
So we don't "need" it per se, but it would be a fun exercise at least for me. The drawback is that the shared library version has to be managed with regard to backward compatibility whereas we don't care about it when it's only used by Friendica.
I just realized that this file
dfrndir.sql
is the update script as well. So I guess it would be correct to keep the old structure at the top and to add some "alter" command to change the field name.There's no current update mechanism for the Friendica directory and I don't intend on maintaining one, so I personally won't change the
dfrndir.sql
file according to your feedback.Okay. There aren't many directory installations in the wild. But these installations will fail after pulling this code when they don't apply the database changes manually.
We need something for the update. Either a script or documentation or a mixture of both.
Merging as people are trying to set up their own directory and it puts them at odds with
dir.friendica.social
.