We really really need a component that watches for updates of other installed components

bryce alvord Posted in Component Development 5 years ago

I have been thinking lately that we really need a component or something to watch/scrape the components page looking for changes to the available download versions of our other installed components. I would be willing to contribute some help if we could get some help from the OSSN team of maybe an API endpoint returning components from the all components list and any metadata about each component. The true bummer I think is that the true component name from the xml isn't actually stored on the component page anywhere but maybe we could backfill this info.

I just say this because my MentionUsers component has seen lots of updates over the course of the last two weeks not because I'm sloppy but because I'm learning and very responsive to bugs. So if someone was an infrequent visitor they might have grabbed v1.2 and I'm now at 1.9

Thoughts?

Replies
us Bryce alvord Replied 5 years ago

Arsalan, I see your point. Let's go ahead and add OSSN Version and Works/Doesn't Work with Current version to the response just for good measure. I can see that most of the null comid are language packs with only a few being components or themes. Do the language packs get treated differently somehow or something? My limited experience makes me guess that they don't and they have a comid just like everything else. I would be happy to download and open each one of these and provide you with a com_id and version for each so that we can have a complete library.

We're you going to add a required field for new components for the com_id?

Indonesian Arsalan Shah Replied 5 years ago

Hi Bryce, i haven't thought on making part of core as we have many translations and if we add more stuff in core we surely need a text for feature. So if we leave those translations untouched and add English langauge only it will look like broken.

What i mean is its not easy to translate any new component we add into core in other languages. (Like i can add Pages into core but who will translate except English and German?)
.

If you wanted me to add Works/Doesn't Work with current version of OSSN let me know i can do that for you.

Regarding v5.x yes its and other thing that need be addressed.

us Bryce alvord Replied 5 years ago

Arsalan, that is awesome! Thank you so much. What do you think of Z Man's commont on making this a part of OSSN core? I still wouldn't mind contributing if it was wanted and I could do a PR into the OSSN code on GitHub but I totally get it if you guys would rather not have outside help, especially from a OSSN noob like me ;)

Also, is it too hard to add the version of OSSN that the component is compatible with like the 5.x for example. The use case for this would be that say I have version 1.2 installed of Component A and OSSN v4.6 installed. Then Component A gets updated to v2.0 but requires 5.x. I I wouldn't want to flag that as having an update available because I don't have 5.x which is a requirement if that makes sense. Also that flag you guys have that says "Works/Doesn't Work with current version of OSSN" would be cool too. Anything else you could think of? I noticed a lot of null com_id and versions too,is there anything we could do to get that info filled in somehow? Let me know your thoughts on me contributing and adding this extra info in the API response. Thanks man!

Indonesian Arsalan Shah Replied 5 years ago

@Bryce as promised : https://www.opensource-socialnetwork.org/wiki/view/3763/community-components-version-updates-api

We always wanted to help people like you , who really wanted to do contribute and do something. 😊😊

Indonesian Arsalan Shah Replied 5 years ago

There is no need to apologize. You may reply to that ticket and i shall answer your question there.

@Bryce, i am currently looking into that and will try to revert back in 1-2 days.

gb Steven Downer Replied 5 years ago

@Arsalan,

Apologies for incorrectly posting, but there was no direct indication that it was for "free" components only and it had bearing on my question. Apologies again.

However, in my defense, if one is required, I did mention this very issue in my last post in my ticket to Softlabs: Friday 25th of October 2019 02:28:11 AM, but that ticket was recently closed, as you know and the question was not answered.

My question is still outstanding....I shall raise another tick in due course and not do so here.

Thanks

Indonesian Arsalan Shah Replied 5 years ago

@Steven, you assumed correct and please start your own topic regarding non free version issues, here its only being asked for OSSN free. Regarding your question. Ask on correct channel. The latest update you see are not the version update unless you see new version. They are the builds which the same version is build again by system from the private repository.

gb Steven Downer Replied 5 years ago

I would assume that such a component would apply only to the "free" components available within the community and not for the "Premium/Hosted" components as supplied by Softlabs??

There is an issue whereby, having purchased the Premium product, any components therein cannot be then downloaded if there are updates to those components....and whilst the update to the Premium OSSN lags behind.

For example. [Ossn Component]Site Moderators, a component that comes with Premium or can be bought separately, was updated:
Latest Version 3.3
Last Update 1 week ago

Yet, the Premium OSSN is not updated to compensate for any such component updates.

You then have to wait for the premium OSSN update that will contain, one will assume, the new updated component.

Component updates (Premium/hosted) are out of sync with updates of premium OSSN, which premium users do not have access to...therfore in this case a component to tell you there is an update would be of no practical value to premium users..... I would guess????

us Bryce alvord Replied 5 years ago

That sounds good to me if it were a part of OSSN core and honestly I think that's it's best implementation since then the code for the OSSN site API or whatever gets used and the update tool would be in the same hands under the same control. I would just like to see it implemented sooner rather than later meaning I would hate to see this kind of functionality get shelved and take 2 years to complete ya know. I don't know what's on the roadmap and what's a priority and it's really not my business but I just hope it would get picked up sooner. Thanks for the input

German Michael Zülsdorff Replied 5 years ago

Nice idea,
and honestly I would prefer making this a core part of Ossn.

As for the API: I think, it's already in place. Almost. Having a look at my Admin panel I can see My Ossn Version and Available Updates.

Thus, it would be sufficient if Arsalan creates a cron job looping in intervals through the component store and save the available information in a JSON file.

Back to my site's admin panel, this would grab that JSON structure, and on opening Components->Components we could do a comparision and mark outdated components with a different color, an alarm clock ... whatever. On uncollapsing the component entry we could have an Update button and upload the latest zip directly from the store if conditions fit.

As for making things foolproof: Basically we have already all parts in place. The component's name, version, and Ossn version (which would need a little refining to allow precise numbers instead of just 5.x). We might add a field for the component id, yes. Then it just needs straight discipline to enter exactly the same here compared to what has been stored in the xml file.

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions