Problem/Motivation

A lot of work has gone into the 7.x version recently - including integrating with Facebook's SDK and API. Since the immediate need was for D7, this was not added to the 8.x version, and as a result none of that work is available for D8. Additionally, new contributors must work with an older version of Drupal.

Proposed resolution

- Update the 8.x version to have parity with 7.x.
- Afterwards change the contribution guidelines so that new features and bug fixes should be done on 8.x, and then backported to 7.x.

Remaining tasks

- Agree on which branch to use (jump to 8.x-2.x. See #2723617: Make 8.x-2.x-dev snapshot).
- Agree on approach
- Move page alter hook into base module
- Move config form into Base module & get Base module config form to parity with 7.x base form
- Add Base module classes
- Add submodules (high level tasks)
1. Display module
2. API module
3. API Rules module
(do not port RSS module)
- Resolve different approaches to Views submodule, between existing 8.x-1.x and 7.x-2.x.
- #2730699: Create CONTRIBUTING.md file
- Include an update to the GitHub CONTRIBUTION file (changes made upstream to 8.x, then backported to 7.x).
- Update the project homepage to reflect the above changes.

User interface changes

All the changes from 7.x (possibly apart from Views - but this is dependent on the TBD agreement above).

API changes

New API added from 7.x.

Data model changes

All the changes from 7.x (possibly apart from Views - but this is dependent on the TBD agreement above).

CommentFileSizeAuthor
#9 many-months-later.jpg20.66 KBscottrigby

Comments

scottrigby created an issue. See original summary.

scottrigby’s picture

Version: 7.x-1.x-dev » 8.x-2.x-dev
Issue summary: View changes

Matt and I are working on this at DrupalCon right now.

scottrigby’s picture

Issue summary: View changes
m4olivei’s picture

Issue summary: View changes

Finished with "Move page alter hook into base module". Merged to 2722613_8x_parity_with_7x branch. Updated description.

markdorison’s picture

Issue summary: View changes
steffenr’s picture

Is there any progress on porting the D7 version features to D8? I could not find any new branch / PRs on github. Right now we are planning / creating tickets for a relaunch of a larger site here at Burda. Hopefully i can get some project-time to port the already existing features to D8. But first i have to talk to my PM - maybe a part of the thunder.org team will help me porting the functionalities.

scottrigby’s picture

@SteffenR I replied a bit in the FB dev group chat, but to this question above – the work so far is in the 2722613_8x_parity_with_7x branch on GitHub. Our thinking was that we'd triage on that branch before opening a PR against the new 8.x-2.x branch.

It'd be great to split up the tasks above – and we can go ahead and do that anytime in separate child issues after we merge this initial branch into 8.x-2.x as a starting point. But the task above that would be the most helpful to meet about and discuss is `Resolve different approaches to Views submodule, between existing 8.x-1.x and 7.x-2.x.`.

Let's coordinate in the FB chat about a time to meet up and discuss :)

steffenr’s picture

Hi Scott - great to see, that you already started building parity with D7. Next week i'll have to talk to my pm about their plans giving some project time in porting the whole D7 module to D8.

scottrigby’s picture

StatusFileSize
new20.66 KB

Many months later

Finaly getting back to this. So this issue should really be broken out into separate sub-issues, focusing on the highest-priority tasks (see Remaining tasks above), so we don't get lost in minutia.

geek-merlin’s picture

RRRReally great work!

scottrigby’s picture

UPDATE: Is anyone in this thread planning to be at DrupalCon Baltimore? @m4olivei and I are planning a BoF to try to resolve this issue (it will probably start with splitting up into sub-issues… which can be done in advance if anyone wants to help tackle that). Then this can become a master issue that links the new ones as child issues. If so, let us know we can find a good way to all connect.

m4olivei’s picture

I'm going to go ahead and take a crack at standing up sub-issues, and then turn this into a master issue.

m4olivei’s picture

OK, I quickly added all the sub-tasks that I teased out during a recent LOE discovery I did to port the module to D8. I tagged each by the sub-module name to which it's applicable.

https://www.drupal.org/project/issues/fb_instant_articles?categories=2&v...

Most interesting to me at least is:

https://www.drupal.org/node/2871637

Which is currently the only task I have for fb_instant_articles_display sub-module. I never liked the way that the D7 version was architected to hijack the render system, which was never really intended to output alternate formats. Let's discuss.

See you at DrupalCon!

  • scottrigby committed 0c2348d on 8.x-2.x
    Issue #2722613: Add DrupalLoggerAppender
    
  • scottrigby committed 22bcbd5 on 8.x-2.x
    Issue #2722613: Move config form back to base module
    
  • scottrigby committed 2591b1f on 8.x-2.x
    Issue #2722613: Initial Base module files
    
  • scottrigby committed 5aa49b2 on 8.x-2.x
    Issue #2722613: Update composer file
    
  • scottrigby authored 86c430b on 8.x-2.x
    Merge pull request #86 from BurdaMagazinOrg/2722613_8x_parity_with_7x...
  • scottrigby committed 89104b5 on 8.x-2.x
    Issue #2722613: Views submodule name string changes
    
  • m4olivei committed 91d120b on 8.x-2.x
    Merge branch 'page-alter-to-base' into 2722613_8x_parity_with_7x
    
    * page...
  • scottrigby committed 95075b0 on 8.x-2.x
    Issue #2722613: Rename Views module files
    
  • acfce87 committed on 8.x-2.x
    Issue #2722613: Initial move of relevant 8.x files to Views submodule
    
  • scottrigby committed b3fd367 on 8.x-2.x
    Issue #2722613: Fix Base module settings links
    
  • m4olivei committed bc70c94 on 8.x-2.x
    Issue #2722613: Move page alter to the base module for the fb:pages...
  • scottrigby committed c3f3a28 on 8.x-2.x
    Issue #2722613: Add TransformerExtender
    
  • scottrigby committed cedcc8e on 8.x-2.x
    Issue #2722613: Views submodule namespace changes
    
m4olivei’s picture

We can call this issue done. The 8.x-2.x branch now has feature parity, with the exception of rules/actions integration, but there is an alternative in place for that.

Further work on 8.x-2.x should get created as new issues. Look out for a release shortly!

m4olivei’s picture

Status: Active » Fixed
scottrigby’s picture

@m4olivei Really psyched by all your hard work on this leg of the port! Wish I could have joined this part but so excellent.

Can you update the list at the top of this issue? It looks like all items in the list are complete except:

- Include an update to the GitHub CONTRIBUTION file (changes made upstream to 8.x, then backported to 7.x).
- Update the project homepage to reflect the above changes.

Maybe we should split those out into their own separate task issues?

Congrats. SO great.

m4olivei’s picture

Assigned: Unassigned » m4olivei
Status: Fixed » Active

Thanks Scott!

Nah we can do them here. The project page has been updated, in addition to fully fleshed out documentation for the 8.x-2.x version here:

https://www.drupal.org/docs/8/modules/facebook-instant-articles

I can update the GitHub CONTRIBUTION file.

m4olivei’s picture

Issue summary: View changes
Status: Active » Fixed

Updated CONTRIBUTING.md file. Also updated description to reflect the items that have been done. I removed the one about the view module, we ended up carrying it forward in the D8 port. The implementation changed drastically and it made sense to keep it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.