tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
215 stars 66 forks source link

[BETA] The wrong Maintenance window is shown in the Org tab for CS109 #241

Closed Wintermute1974 closed 11 months ago

Wintermute1974 commented 11 months ago

Describe the bug The Org tab shows the wrong Maintenance window for CS109.

To Reproduce Steps to reproduce the behavior:

  1. Log into a CS109 sandbox on 5 December 2023.
  2. Open the Salesforce Inspector Reloaded BETA flyout panel.
  3. Click on the Org tab.
  4. Look at the value for Maintenance field.

Expected Results The Maintenance field's value should be "Spring '24 on Sat Jan 06 2024"

Actual Results The Maintenance field's value shown is "Summer '24 on Sat May 11 2024"

Desktop:

Screenshots 2023-12-05 - BETA - List of Planned Maintenance for CS109 2023-12-05 - BETA - Wrong Maintenance Shown - Spring '24 on Jan 06 for CS109 not shown

Additional context Please feel free to contact me, if I should try a future build in the same Org.

tprouvot commented 11 months ago

Hi @Wintermute1974 That's right, some instance seems to list maintenances without sorting it by release date...

I'll have to sort the result by plannedStartTime and not taking the first "Major Release" from the list ! Thanks a lot for highlighting this issue 🙏

{
  "Maintenances": [
    {
      "id": 642260,
      "message": {
        "maintenanceType": "release",
        "availability": "unavailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE000000Bs8N2AS",
      "name": "Summer '24 Major Release",
      "plannedStartTime": "2024-05-11T03:30:00.000Z",
      "plannedEndTime": "2024-05-11T03:35:00.000Z",
      "additionalInformation": "",
      "isCore": true,
      "affectsAll": false,
      "createdAt": "2023-06-20T20:39:38.473Z",
      "updatedAt": "2023-06-20T20:39:38.473Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["coreService"]
    },
    {
      "id": 655574,
      "message": {
        "maintenanceType": "scheduledMaintenance",
        "availability": "fullyAvailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE000000Dlh32AC",
      "name": "Org Migrations",
      "plannedStartTime": "2023-11-04T21:00:00.000Z",
      "plannedEndTime": "2023-11-05T00:00:00.000Z",
      "additionalInformation": "Admins of orgs scheduled to migrate will be notified via a Salesforce Product and Service notification. If your org doesn't receive a notification, then you aren’t migrating. Orgs being migrated are available in read-only mode. Start and completion notifications aren’t posted to Trust during the maintenance. After migrations are completed, orgs can be activated on the target instance before the end of this maintenance window. The instance is fully available for all other orgs",
      "isCore": true,
      "affectsAll": false,
      "createdAt": "2023-10-04T01:31:38.359Z",
      "updatedAt": "2023-10-04T01:31:38.359Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [
        {
          "id": 211908,
          "type": "reminder",
          "message": "This maintenance will happen in 10 days.",
          "createdAt": "2023-10-24T21:04:56.345Z",
          "updatedAt": "2023-10-24T21:04:56.345Z"
        },
        {
          "id": 207825,
          "type": "scheduled",
          "message": "This maintenance is scheduled.",
          "createdAt": "2023-10-04T01:39:38.206Z",
          "updatedAt": "2023-10-04T01:39:38.206Z"
        }
      ],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["coreService"]
    },
    {
      "id": 661851,
      "message": {
        "maintenanceType": "release",
        "availability": "unavailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE0000009lJ52AI",
      "name": "Spring '24 Major Release",
      "plannedStartTime": "2024-01-06T04:30:00.000Z",
      "plannedEndTime": "2024-01-06T04:35:00.000Z",
      "additionalInformation": "",
      "isCore": true,
      "affectsAll": false,
      "createdAt": "2023-11-15T20:38:51.975Z",
      "updatedAt": "2023-11-15T20:38:51.975Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [
        {
          "id": 213395,
          "type": "scheduled",
          "message": "This maintenance is scheduled.",
          "createdAt": "2023-11-15T20:46:51.960Z",
          "updatedAt": "2023-11-15T20:46:51.960Z"
        }
      ],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["coreService"]
    },
    {
      "id": 662020,
      "message": {
        "maintenanceType": "release",
        "availability": "unavailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE000000EaJn2AK",
      "name": "Winter '25 Major Release",
      "plannedStartTime": "2024-09-07T03:30:00.000Z",
      "plannedEndTime": "2024-09-07T03:35:00.000Z",
      "additionalInformation": "",
      "isCore": true,
      "affectsAll": false,
      "createdAt": "2023-11-17T20:18:17.445Z",
      "updatedAt": "2023-11-17T20:18:17.445Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["coreService"]
    },
    {
      "id": 663749,
      "message": {
        "maintenanceType": "release",
        "availability": "fullyAvailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE0000008dVd2AI",
      "name": "REV Spring '24 Major Release (248) - SB1",
      "plannedStartTime": "2024-01-06T05:00:00.000Z",
      "plannedEndTime": "2024-01-07T06:00:00.000Z",
      "additionalInformation": "All orgs running CPQ versions 208.x and above on the listed instances will be upgraded to CPQ Spring '24 (248.x) package.\r\nThe Billing package, if installed, will also be upgraded to Billing Spring '24 (248.x) package along with the relevant payment gateways.\r\nThe Advanced Approvals package, if installed, will also be upgraded to the latest version.",
      "isCore": false,
      "affectsAll": false,
      "createdAt": "2023-12-01T19:27:56.747Z",
      "updatedAt": "2023-12-01T19:27:56.747Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [
        {
          "id": 214260,
          "type": "scheduled",
          "message": "This maintenance is scheduled.",
          "createdAt": "2023-12-01T19:35:56.545Z",
          "updatedAt": "2023-12-01T19:35:56.545Z"
        }
      ],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["CPQandBilling"]
    },
    {
      "id": 664743,
      "message": {
        "maintenanceType": "release",
        "availability": "fullyAvailable",
        "eventStatus": "confirmed"
      },
      "externalId": "a3GEE000000Ed1X2AS",
      "name": "Chat / Omni-Channel Spring '24 Release Preparation Notice",
      "plannedStartTime": "2023-12-12T21:00:00.000Z",
      "plannedEndTime": "2023-12-12T21:10:00.000Z",
      "additionalInformation": "This release preparation event will prepare your instance for the Spring '24 major release upgrade. During this event, Chat (formerly known as Live Agent), Omni-Channel, Messaging, Einstein Bots and SOS features will be available with no disruptions in service. After this event, there will be no changes to your Chat (formerly known as Live Agent), Omni-Channel, Messaging, Einstein Bots and SOS services. While this event was posted to TRUST, no further TRUST notifications about it will be sent.",
      "isCore": false,
      "affectsAll": false,
      "createdAt": "2023-12-04T16:52:10.143Z",
      "updatedAt": "2023-12-04T16:52:10.143Z",
      "MaintenanceImpacts": [],
      "MaintenanceEvents": [
        {
          "id": 215150,
          "type": "scheduled",
          "message": "This maintenance is scheduled.",
          "createdAt": "2023-12-04T17:00:13.522Z",
          "updatedAt": "2023-12-04T17:00:13.522Z"
        }
      ],
      "instanceKeys": ["CS109"],
      "serviceKeys": ["liveAgent"]
    }
  ],
  "Tags": []
}
tprouvot commented 11 months ago

Fix https://github.com/tprouvot/Salesforce-Inspector-reloaded/commit/f553b0a6e211241174f7053707d127783da99504

I will probably upload new beta version during the week

tprouvot commented 11 months ago

@Wintermute1974 new version was uploaded today, generally chrome webstore review is done during the day

tprouvot commented 11 months ago

@Wintermute1974 fix is available in beta version, let me know if the issue is fixed for you.

Wintermute1974 commented 11 months ago

@tprouvot It now works as expected in CS109 when running version 1.21.2. 2023-12-14 - Confirmed I have been using the beta version heavily for the last few days. Except for this minor issue showing the wrong maintenance date, everything has worked flawlessly for me. Thank you for all your work.