SFXD / Release-Note-checker

bash script that is made to check if there are new release notes and warn you if there are
0 stars 0 forks source link

Add Vlocity release notes to the bot #1

Closed thvd closed 3 years ago

thvd commented 3 years ago

Would be great to be notified about Vlocity releases. The releases are listed here: https://docs-vhc.vlocinternal.com/vhc/packageinventory/package-inventory-CMT.html

Windyo commented 3 years ago

Hey, that bot is deprecated, but I'll add it to the event stream manager. I should update this repo as well with the new functions I guess. I'll add a todo and ping back when I'm done.

Windyo commented 3 years ago

Wait, those version numbers make no sense to me - what's the numbering format and logic ? Sorry, not really a Vlocity guru

thvd commented 3 years ago

Where is the repo for the new bot? The version scheme: The column "Package Version" is the official managed package version number. For example "900.408.9":

Then there is the internal version scheme (column Internal version). For example "CME 230.3.1"

Windyo commented 3 years ago

Ain't no repo yet, the bot's a Huginn event stream.

Considering the above - if I parse the page and get

Summary | Package Version | Released | Download Link | Sandbox Link | Release Notes | Internal Version -- | -- | -- | -- | -- | -- | -- CME 230.3.1.900.408.9 (Spring 2021 Patch Release) | 900.408.9 | Jul 8, 2021 | [Production Download] | [Sandbox Download] | For details, see the Patch Releases section in https://docs.vlocity.com/en/CME-230-Release-Overview.html | CME 230.3.1 CME 232.0.900.434 (Summer 2021 Release) | 900.434 | Jun 25, 2021 | [Production Download] | [Sandbox Download] | See the Help Center for release notes and supporting documentation: https://docs.vlocity.com/en/CME-232-Release-Overview.html | 232

Do you expect a notification to be sent because there's a new line, or should I disregard the update because 408 < 434 ?

thvd commented 3 years ago

I would say if there is a new row in the table, that's what's i interesting right? To be notified about a new release?

It doesn't tell the release notes are updated, but in order to check that you have to login to the success portal. That's getting quite complicated i can imagine, so this would be a great start.

Windyo commented 3 years ago

I would say if there is a new row in the table, that's what's i interesting right? To be notified about a new release?

I can justify both - I imagine that if you care about new releases, you don't care about patches, esp as patches seem to be frequent.

I think what I'll do is parse the version number, and do three notification streams - one for major, one for minor, one for patch.

thvd commented 3 years ago

Sounds good to me! The major version ( of the official package version number) will never be updated as far as i know. So i would just major + minor (combine both)

Windyo commented 3 years ago

Can you confirm what CME is ? Am I checking releases for all Vlocity or just a specific industry ? Just so I know how I name stuff

thvd commented 3 years ago

Good one, CME is Communications and Media Entertainment. There are more indeed:

Windyo commented 3 years ago

I was hoping I could get a full list by GET'in docs-vhc.vlocinternal.com/vhc/packageinventory/ but sadly it 401's. I'll start by building a PoC for CMT and extend to whatever other URL I find.

I probably won't plug those to @SFXD_Bot on twitter because I can publish to specific event channels there, but I'll shove that to Discord with specific tags and publish a release endpoint that'll support RSS, that way you can subscribe to it out of Discord.

Windyo commented 3 years ago

Alright ehre's a quick PoC of what I could expose. I'm not filtering by stream for this PoC, but the filter is the easy part. LMK if taht works for your usecase. Reg Dsicord that one's easy as hell, I'll finish up in my free time tonight. https://huginn.bessereau.eu/users/1/web_requests/37/sfxd-vlocity.json

Windyo commented 3 years ago

I'm an idiot who archived the repo before closing this. Oh well.

Anyway, unarchiged dso we can finish this up. CMT now has three RSS endpoints:

https://huginn.bessereau.eu/users/1/web_requests/42/sfxd-vlocity.json https://huginn.bessereau.eu/users/1/web_requests/41/sfxd-vlocity.json https://huginn.bessereau.eu/users/1/web_requests/37/sfxd-vlocity.json

I'm prepping the Discord notifying roles as well. Should eb done in like 30 minutes.

I'll set up the SFXD tiwtter bot to tweet on new Minor versions, not patch ones. I think taht'll be rare enough and valuable.

Windyo commented 3 years ago

image

Windyo commented 3 years ago

image

Windyo commented 3 years ago

KK, I think that covers it.I'll go over the other pages, they seem to parse the same. We good on your side @thvd ?

thvd commented 3 years ago

What would be helpfull is to see the versionnumber in the notification? Is that possible? That package package node in the JSON

Windyo commented 3 years ago

done image

image

thvd commented 3 years ago

Thanks looks great!

Windyo commented 3 years ago

cool, will do other Vlocity links you sent, if you know of others LMK.

Windyo commented 3 years ago

Just in case, here's the Huginn definition file. https://huginn.bessereau.eu/scenarios/5/export.json