Giter Club home page Giter Club logo

Comments (9)

morloderex avatar morloderex commented on August 18, 2024 1

@brendt

I get that you want to be in control over which rfcs we should show on our site, that makes sense. But let's imagine that we are pulling in some rfc during internals discussion phase and we have moved that rfc to be published already.

And the during the internals discussion phase the rfc text changes we kinda still want to keep the rfc in sync with the original text.

So we still need the rfcs to be a bit coupled to the internals list in order to sync any text changes regardless of our internal state due to possible rfc revisions.

I will start work on some kind "synchroniser" taking in your feedback.

from rfc-vote.

brendt avatar brendt commented on August 18, 2024

Yeah that makes sense! Do you want to give it a shot?

from rfc-vote.

pronskiy avatar pronskiy commented on August 18, 2024

I've got some crawling already implemented in the scope of my research project, so I can add the basis here.

from rfc-vote.

morloderex avatar morloderex commented on August 18, 2024

@brendt Alright i took a bit of POC on this.

It uses spatie/crawler and some dom manipulation to extract the rfc text and put that into the description field.

We are importing stuff now, but the code is not pretty at all, and the php site's code highlighter is a bit tricky to work around.

But at least it is actually saving the data.

I have for now only done it for the rfcs under discussions tho just a POC.

There's still a lot of cleanup to do on it but at least something is syncing.

@brendt checkout https://github.com/morloderex/rfc-vote/tree/sync-rfcs to try it out.

from rfc-vote.

morloderex avatar morloderex commented on August 18, 2024

Okay, so just to give you an update on this ticket.

During last week, I took a bit of an R&D session in order to find the best way to do this.

I can stumped upon https://github.com/ramsey/php-rfcs

So that inspired me to go ahead and figure out the ins and outs of how that worked.

It appears that we can get everything in rst format (I plan on converting to markdown), but it is great news.

The only this is that using this approach we cannot really get the final vote results as the wiki returns some weird result when trying to get them using the raw result for an rfc.

But I plan to work around this by simply doing another request and parse the xhtml body for it instead.

The question now becomes how should we structure the rfcs by a status or by the requested PHP version or if it's already implemented in version should we even have a list of these?

from rfc-vote.

brendt avatar brendt commented on August 18, 2024

Hi @morloderex I'm sorry, somehow I missed your previous comment, super nice that you're working on this!

I think it'll be important to have control over what RFCs we sync, and which ones we don't. The way I envision it:

  • We sync all RFCs, but save them in a separate table (PendingRfc or something alike)
  • Admin users can view a list of all pending RFCs (newest first), and have a button to convert them into a real RFC that'll be published on the site.
  • Admins can also remove (soft delete) pending RFCs, so that they don't end up in the list anymore
  • When an RFC is done, we should have the option to reimport information (like eg. the vote results).
  • What's important is that we don't tightly couple PHP's RFC cycle to ours. It's entirely possible that we publish an RFC while it hasn't gone to internal voting yet, and also that we keep it published even after the internals vote has closed.

I realise this is quite a big issue. You definitely don't have to do all of this if you don't want to ;) If you're already able to PR some kind of "synchroniser", that would already be a huge step forward :)

from rfc-vote.

pronskiy avatar pronskiy commented on August 18, 2024

Folks, please make sure you don't publish Draft RFCs https://phpopendocs.com/internals/rfc_etiquette#dont-publicise-other-peoples-draft-work

from rfc-vote.

morloderex avatar morloderex commented on August 18, 2024

@pronskiy I am pulling everything in to an other table and then someone with administrative rights can publish the rfc to our website after the internals announcement.

I think that's the way forward we simply have no good way of knowing when a draft rfc is ready to be discussed.

from rfc-vote.

brendt avatar brendt commented on August 18, 2024

I think we do? As soon as it's moved to the "under discussion" section?

from rfc-vote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.