Comments (9)
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.
Yeah that makes sense! Do you want to give it a shot?
from rfc-vote.
I've got some crawling already implemented in the scope of my research project, so I can add the basis here.
from rfc-vote.
@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.
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.
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.
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.
@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.
I think we do? As soon as it's moved to the "under discussion" section?
from rfc-vote.
Related Issues (20)
- Clickable cards on the homepage HOT 6
- Linkedin share issue HOT 2
- Argument social share buttons should link to argument directly
- Pagination Breaks After Edit HOT 1
- Code block styling: small size HOT 3
- The color of strong tags in dark mode is difficult to read HOT 1
- Vote bar is not aligned in card
- RFC suggestion/discussion HOT 4
- 🐛 Error when trying to submit an argument HOT 9
- ❓ Not used Blade files? HOT 2
- Error 500 when trying to change account e-mail HOT 1
- Move tutorial from RFC page to About page
- Code highlighting is broken for code samples
- Clean the codebase by removing unused files
- Code blocks lack contrast in bright mode HOT 4
- unreadable code snippet when using ligth mode HOT 2
- User feedback HOT 9
- RFC suggestions issue
- Change styles of monospaced inline code examples in RFC description
- Performance issues HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfc-vote.