Cannot create a channel ID

Created on 16 April 2020, over 4 years ago
Updated 7 September 2023, over 1 year ago

Problem/Motivation

For some reason a user cannot create a channel ID. The lack of a channel ID means the creation of a bigcommerce cart does not work and neither does checkout.

Proposed resolution

Work out how to either help the user to get the requisite bigcommerce permissions or fix the Drupal module to do the right thing.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    I can't get a list of channels either.

    It seems like the module loses the ones returned from the API here:

        $channels = array_filter($channels, function (Channel $channel) {
          return $channel->getPlatform() === CreateChannelRequest::PLATFORM_DRUPAL;
        });
    

    Why does this care if the channel name is 'drupal'?

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    I removed that line of code and added the channel ID for clarity:

    
        $list = [];
        foreach ($channels as $channel) {
          $list[$channel->getId()] = $channel->getName() . ' (channel ID: ' . $channel->getId() . ')';
        }
    

    in the option list. Now I can select any channel made from BC.

    It seems like this code only existed to show you only the channels that were created from Drupal, as opposed to selecting any channels already made in BC.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    Also - it is possible that a user may not have permission to create a channel. So I would think we should not limit these options to only channels made from within Drupal, or users get stuck.

  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen

    Unless anyone has objections - I will remove that filter. I only see the constant referenced in just one place. Can anyone explain why you'd only want to list channels that were made in Drupal vs any existing channels in BigCommerce? (I am not sure what the importance there is).

  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States kevinquillen
Production build 0.71.5 2024