justicenation / slashclock

/clock concept as a new Slack app
GNU General Public License v3.0
0 stars 0 forks source link

Salesforce DX #46

Closed martyychang closed 6 years ago

martyychang commented 6 years ago

slashClock 1.0 was built using the Metadata API with MavensMate + Sublime Text 3 as the IDE. This mode of development is not sustainable, as MavensMate is not longer in support or development, and the future of Salesforce development is clearly with Salesforce DX. The next major release of slashClock should include a conversion into Salesforce DX format.

martyychang commented 6 years ago

Found an article with instructions, "Migrating Existing Projects to Salesforce DX"

martyychang commented 6 years ago

I found I could change to the parent directory locally and make my project Salesforce DX-friendly in-place by executing the following command.

$ sfdx force:project:create -n slashclock
target dir = /Users/martyc/Documents/GitHub/justicenation
   create slashclock/sfdx-project.json
   create slashclock/README.md
   create slashclock/.forceignore
   create slashclock/config/project-scratch-def.json
martyychang commented 6 years ago

The good news is that conversion appeared to be successful. The bad news is that I have a ton of deployment errors...

Deployment finished in 7000ms

=== Result
Status:  Failed
jobid:  0Aff200000IWHFzCAP
Completed:  2018-08-03T00:33:42.000Z
Component errors:  119
Components checked:  178
Components total:  297
Tests errors:  0
Tests completed:  0
Tests total:  0
Check only: true

=== Component Failures [119]
TYPE   FILE                                               NAME                                      PROBLEM
─────  ─────────────────────────────────────────────────  ────────────────────────────────────────  ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error  out/objects/Account.object                         Account.IsCustomerPortal                  Could not resolve standard field's name.
Error  out/objects/Account.object                         Account.IsPartner                         Could not resolve standard field's name.
Error  out/classes/ApexJobRequestProcessJobTest.cls       ApexJobRequestProcessJobTest              Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/ApexJobServiceTest.cls                 ApexJobServiceTest                        Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/ClockResource.cls                      ClockResource                             Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/ClockResourceTest.cls                  ClockResourceTest                         Dependent class is invalid and needs recompilation:
                                                                                                     Class ClockResource : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/layouts/Contact-Contact Layout.layout          Contact-Contact Layout                    In field: field - no CustomField named Contact.WeekFirstDay__c found
Error  out/objects/Contact.object                         Contact.WeekFirstDay__c                   The global picklist cannot be resolved
Error  out/classes/DatetimeUtilAdjustTest.cls             DatetimeUtilAdjustTest                    Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/SlackApiServiceTest.cls                SlackApiServiceTest                       Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/SlackServiceTest.cls                   SlackServiceTest                          Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/SlackUtil.cls                          SlackUtil                                 Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportItem : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/pages/SlashclockCallback.page                  SlashclockCallback                        Apex class 'SlashclockCallbackController' does not exist
Error  out/classes/SlashclockCallbackController.cls       SlashclockCallbackController              Dependent class is invalid and needs recompilation:
                                                                                                     Class SlackUtil : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportItem : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/classes/SlashclockCallbackControllerTest.cls   SlashclockCallbackControllerTest          Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockCallbackController : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlackUtil : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportItem : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/classes/SlashclockEntriesCommand.cls           SlashclockEntriesCommand                  Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockEntriesCommandTest.cls       SlashclockEntriesCommandTest              Invalid type: TimeSlice__c
Error  out/classes/SlashclockEntriesCommandTest.cls       SlashclockEntriesCommandTest              Invalid type: TimeSlice__c
Error  out/classes/SlashclockEntriesCommandTest.cls       SlashclockEntriesCommandTest              Variable does not exist: thenSlices
Error  out/classes/SlashclockErrorTest.cls                SlashclockErrorTest                       Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockFeedbackCommand.cls          SlashclockFeedbackCommand                 Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockFeedbackCommandTest.cls      SlashclockFeedbackCommandTest             Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockFeedbackCommand : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockHelpCommandTest.cls          SlashclockHelpCommandTest                 Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockInCommand.cls                SlashclockInCommand                       Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockInCommandTest.cls            SlashclockInCommandTest                   Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockInCommand : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockLosAngelesTest.cls           SlashclockLosAngelesTest                  Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockOutCommand.cls               SlashclockOutCommand                      Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockOutCommandTest.cls           SlashclockOutCommandTest                  Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockOutCommand : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockReport.cls                   SlashclockReport                          Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportItem : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportCommand.cls            SlashclockReportCommand                   Dependent class is invalid and needs recompilation:
                                                                                                     Class SlackUtil : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportItem : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItem.cls               SlashclockReportItem                      Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockReportSlice : Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportItemTest.cls           SlashclockReportItemTest                  Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportSlice.cls              SlashclockReportSlice                     Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportSlice.cls              SlashclockReportSlice                     Variable does not exist: record.NumberOfMinutes__c
Error  out/classes/SlashclockReportSlice.cls              SlashclockReportSlice                     Variable does not exist: record
Error  out/classes/SlashclockReportSliceTest.cls          SlashclockReportSliceTest                 Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportSliceTest.cls          SlashclockReportSliceTest                 Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportSliceTest.cls          SlashclockReportSliceTest                 Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportTest.cls               SlashclockReportTest                      Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportTest.cls               SlashclockReportTest                      Invalid type: TimeSlice__c
Error  out/classes/SlashclockReportTest.cls               SlashclockReportTest                      Invalid type: TimeSlice__c
Error  out/classes/SlashclockService.cls                  SlashclockService                         Invalid type: TimeSlice__c
Error  out/classes/SlashclockService.cls                  SlashclockService                         Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockService.cls                  SlashclockService                         Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockService.cls                  SlashclockService                         NumberOfMinutes__c, Tag__c FROM TimeSlices__r),
                                                                                                                                    ^
                                                                                                    ERROR at Row:3:Column:61
                                                                                                    Didn't understand relationship 'TimeSlices__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockService.cls                  SlashclockService                         NumberOfMinutes__c, Tag__c FROM TimeSlices__r)
                                                                                                                                    ^
                                                                                                    ERROR at Row:3:Column:61
                                                                                                    Didn't understand relationship 'TimeSlices__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockService.cls                  SlashclockService                         Invalid type: TimeSlice__c
Error  out/classes/SlashclockService.cls                  SlashclockService                         DML requires SObject or SObject list type: TimeSlice__c
Error  out/classes/SlashclockServiceTest.cls              SlashclockServiceTest                     Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockSliceCommand.cls             SlashclockSliceCommand                    Method does not exist or incorrect signature: void slice(Decimal, String) from the type SlashclockService
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                FROM TimeSlices__r
                                                                                                                             ^
                                                                                                    ERROR at Row:5:Column:26
                                                                                                    Didn't understand relationship 'TimeSlices__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                FROM TimeSlices__r
                                                                                                                             ^
                                                                                                    ERROR at Row:5:Column:26
                                                                                                    Didn't understand relationship 'TimeSlices__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.NumberOfMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.Tag__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                SELECT Id, DurationMinutes__c, NumberOfSlicedMinutes__c,
                                                                                                                                   ^
                                                                                                    ERROR at Row:2:Column:44
                                                                                                    No such column 'NumberOfSlicedMinutes__c' on entity 'TimeEntry__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.NumberOfMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.Tag__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                SELECT Id, DurationMinutes__c, NumberOfSlicedMinutes__c,
                                                                                                                                   ^
                                                                                                    ERROR at Row:2:Column:44
                                                                                                    No such column 'NumberOfSlicedMinutes__c' on entity 'TimeEntry__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Invalid type: TimeSlice__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: eachSlice
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: eachSlice
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                SELECT Id, DurationMinutes__c, NumberOfSlicedMinutes__c,
                                                                                                                                   ^
                                                                                                    ERROR at Row:2:Column:44
                                                                                                    No such column 'NumberOfSlicedMinutes__c' on entity 'TimeEntry__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.NumberOfMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: Schema.SObjectType.TimeSlice__c.fields.Tag__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                SELECT Id, DurationMinutes__c, NumberOfSlicedMinutes__c,
                                                                                                                                   ^
                                                                                                    ERROR at Row:2:Column:44
                                                                                                    No such column 'NumberOfSlicedMinutes__c' on entity 'TimeEntry__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: NumberOfSlicedMinutes__c
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceCommandTest.cls         SlashclockSliceCommandTest                Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockSliceList.cls                SlashclockSliceList                       Invalid type: TimeSlice__c
Error  out/classes/SlashclockSliceList.cls                SlashclockSliceList                       Invalid type: TimeSlice__c
Error  out/classes/SlashclockSliceList.cls                SlashclockSliceList                       Invalid type: TimeSlice__c
Error  out/classes/SlashclockStrikeCommand.cls            SlashclockStrikeCommand                   Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockStrikeCommandTest.cls        SlashclockStrikeCommandTest               Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockStrikeCommand : Dependent class is invalid and needs recompilation:
                                                                                                     Class SlashclockService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockUnknownCommandTest.cls       SlashclockUnknownCommandTest              Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/SlashclockUtil.cls                     SlashclockUtil                            Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockUtil.cls                     SlashclockUtil                            Invalid type: TimeSlice__c
Error  out/classes/SlashclockUtilTest.cls                 SlashclockUtilTest                        NumberOfMinutes__c, Tag__c FROM TimeSlices__r)
                                                                                                                                    ^
                                                                                                    ERROR at Row:3:Column:61
                                                                                                    Didn't understand relationship 'TimeSlices__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Error  out/classes/SlashclockUtilTest.cls                 SlashclockUtilTest                        Variable does not exist: TimeSlices__r
Error  out/classes/SlashclockUtilTest.cls                 SlashclockUtilTest                        Variable does not exist: TimeSlices__r
Error  out/classes/TestService.cls                        TestService                               Invalid type: TimeSlice__c
Error  out/classes/TestService.cls                        TestService                               Invalid type: TimeSlice__c
Error  out/classes/TestService.cls                        TestService                               Invalid type: TimeSlice__c
Error  out/classes/TestService.cls                        TestService                               Invalid type: TimeSlice__c
Error  out/classes/TimeEntryDataServiceTest.cls           TimeEntryDataServiceTest                  Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/classes/TimeEntryVerifyTimeZoneJobTest.cls     TimeEntryVerifyTimeZoneJobTest            Dependent class is invalid and needs recompilation:
                                                                                                     Class TestService : Invalid type: TimeSlice__c
Error  out/layouts/TimeEntry__c-Time Entry Layout.layout  TimeEntry__c-Time Entry Layout            In field: field - no CustomField named TimeEntry__c.NumberOfSlicedMinutes__c found
Error  out/objects/TimeEntry__c.object                    TimeEntry__c.DurationCoversSlices         Field NumberOfSlicedMinutes__c does not exist. Check spelling.
Error  out/objects/TimeEntry__c.object                    TimeEntry__c.DurationHours__c             Field NumberOfSlicedOutMinutes__c does not exist. Check spelling.
Error  out/objects/TimeEntry__c.object                    TimeEntry__c.NumberOfSlicedMinutes__c     In field: summaryForeignKey - no CustomObject named TimeSlice__c found
Error  out/objects/TimeEntry__c.object                    TimeEntry__c.NumberOfSlicedOutMinutes__c  In field: summaryForeignKey - no CustomObject named TimeSlice__c found

ERROR:  The metadata deploy operation failed.
martyychang commented 6 years ago

Looks like I was missing the entire TimeSlice__c object

martyychang commented 6 years ago

Retrieving the object and committing resulted in only a few errors now being reported.

Deployment finished in 9000ms

=== Result
Status:  Failed
jobid:  0Aff200000IWHwLCAX
Completed:  2018-08-03T01:01:51.000Z
Component errors:  2
Components deployed:  231
Components total:  233
Tests errors:  0
Tests completed:  0
Tests total:  0
Check only: false

=== Component Failures [2]
TYPE   FILE                                       NAME                     PROBLEM
─────  ─────────────────────────────────────────  ───────────────────────  ────────────────────────────────────────────────────────────────────
Error  out/layouts/Contact-Contact Layout.layout  Contact-Contact Layout   In field: field - no CustomField named Contact.WeekFirstDay__c found
Error  out/objects/Contact.object                 Contact.WeekFirstDay__c  The global picklist cannot be resolved

ERROR:  The metadata deploy operation failed.
martyychang commented 6 years ago

Awesome! Deployment succeeded into a fresh Salesforce org!

Deployment finished in 35000ms

=== Result
Status:  Succeeded
jobid:  0Aff200000IWI0NCAX
Completed:  2018-08-03T01:05:25.000Z
Component errors:  0
Components deployed:  234
Components total:  234
Tests errors:  0
Tests completed:  121
Tests total:  121
Check only: false

Last check is to make sure I can push to a scratch org successfully...

martyychang commented 6 years ago

Sadly many more errors... 😢

PROJECT PATH                                                                 ERROR
───────────────────────────────────────────────────────────────────────────  ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
force-app/main/default/objects/Account/fields/IsPartner.field-meta.xml       Could not resolve standard field's name. (133:13)
force-app/main/default/layouts/Contact-Contact Layout.layout-meta.xml        In field: QuickAction - no QuickAction named FeedItem.RypplePost found
force-app/main/default/objects/Contact/fields/SlackTeamId__c.field-meta.xml  Field SlackTeamId__c does not exist. Check spelling. (241:13)
force-app/main/default/classes/SlashclockOutCommandTest.cls                  Dependent class is invalid and needs recompilation:
                                                                              Class RelativeTestService : Field does not exist: SlackTeamId__c on Account (47:25)
force-app/main/default/classes/SlashclockReportCommand.cls                   Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockService.cls                         Variable does not exist: SlackTeamId__c (58:51)
force-app/main/default/classes/SlashclockServiceTest.cls                     WHERE SlackTeamId__c = :teamId
                                                                                               ^
                                                                             ERROR at Row:6:Column:19
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (138:31)
force-app/main/default/classes/SlashclockSliceCommand.cls                    Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockSliceCommandTest.cls                Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockUtil : Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockEntriesCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockStrikeCommand.cls                   Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockStrikeCommandTest.cls               Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockStrikeCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockUnknownCommandTest.cls              Dependent class is invalid and needs recompilation:
                                                                              Class TestService :
                                                                                             SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (26:16)
force-app/main/default/classes/SlashclockUtil.cls                            Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockEntriesCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockUtilTest.cls                        Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockUtil : Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockEntriesCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlackService.cls                              Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlackService.cls                              SlackAccessToken__c,
                                                                                             ^
                                                                             ERROR at Row:5:Column:17
                                                                             No such column 'SlackAccessToken__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (103:38)
force-app/main/default/classes/ApexJobRequestProcessJobTest.cls              Dependent class is invalid and needs recompilation:
                                                                              Class TimeEntryVerifyTimeZoneJob : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/ApexJobServiceTest.cls                        Dependent class is invalid and needs recompilation:
                                                                              Class TimeEntryVerifyTimeZoneJob : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/ClockResource.cls                             Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/ClockResourceTest.cls                         Dependent class is invalid and needs recompilation:
                                                                              Class ClockResource : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/DatetimeUtilAdjustTest.cls                    Dependent class is invalid and needs recompilation:
                                                                              Class TestService :
                                                                                             SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (26:16)
force-app/main/default/classes/RelativeTestService.cls                       Field does not exist: SlackTeamId__c on Account (47:25)
force-app/main/default/classes/SlackApiServiceTest.cls                       Dependent class is invalid and needs recompilation:
                                                                              Class TestService :
                                                                                             SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (26:16)
force-app/main/default/classes/SlackService.cls                              Account.SlackTeamId__c,
                                                                                                 ^
                                                                             ERROR at Row:5:Column:21
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (133:42)
force-app/main/default/classes/SlackService.cls                              Variable does not exist: SlackAccessToken__c (200:21)
force-app/main/default/classes/SlackServiceTest.cls                          SlackAccessToken__c,
                                                                                             ^
                                                                             ERROR at Row:3:Column:17
                                                                             No such column 'SlackAccessToken__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (39:38)
force-app/main/default/classes/SlackServiceTest.cls                          Variable does not exist: SlackAccessToken__c (52:33)
force-app/main/default/classes/SlackServiceTest.cls                          Variable does not exist: SlackAccessToken__c (53:51)
force-app/main/default/classes/SlackServiceTest.cls                          Variable does not exist: SlackTeamId__c (57:33)
force-app/main/default/classes/SlackServiceTest.cls                          Variable does not exist: SlackTeamId__c (58:51)
force-app/main/default/classes/SlashclockCallbackController.cls              Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockCallbackControllerTest.cls          Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockCallbackController : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockEntriesCommand.cls                  Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockEntriesCommandTest.cls              Account.SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:3:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (11:25)
force-app/main/default/classes/SlashclockEntriesCommandTest.cls              Variable does not exist: SlackTeamId__c (29:49)
force-app/main/default/classes/SlashclockEntriesCommandTest.cls              Variable does not exist: SlackTeamId__c (45:56)
force-app/main/default/classes/SlashclockEntriesCommandTest.cls              Variable does not exist: SlackTeamId__c (74:56)
force-app/main/default/classes/SlashclockEntriesCommandTest.cls              Variable does not exist: SlackTeamId__c (99:56)
force-app/main/default/classes/SlashclockErrorTest.cls                       Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockFeedbackCommand.cls                 Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockFeedbackCommandTest.cls             Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockFeedbackCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockHelpCommandTest.cls                 Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockInCommand.cls                       Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockInCommandTest.cls                   Dependent class is invalid and needs recompilation:
                                                                              Class SlashclockInCommand : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (53:35)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (113:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (195:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Variable does not exist: SlackTeamId__c (213:46)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (291:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Variable does not exist: SlackTeamId__c (322:46)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (379:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Variable does not exist: SlackTeamId__c (410:46)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (472:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Field does not exist: SlackTeamId__c on Account (554:31)
force-app/main/default/classes/SlashclockLosAngelesTest.cls                  Variable does not exist: SlackTeamId__c (572:46)
force-app/main/default/classes/SlashclockOutCommand.cls                      Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/TestService.cls                               SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (26:16)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (115:24)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (119:23)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (123:25)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (127:23)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (231:24)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (300:24)
force-app/main/default/classes/TestService.cls                               Field does not exist: SlackTeamId__c on Account (364:24)
force-app/main/default/classes/TimeEntryDataServiceTest.cls                  Dependent class is invalid and needs recompilation:
                                                                              Class TestService :
                                                                                             SlackTeamId__c,
                                                                                             ^
                                                                             ERROR at Row:4:Column:17
                                                                             No such column 'SlackTeamId__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (26:16)
force-app/main/default/classes/TimeEntryVerifyTimeZoneJob.cls                Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/classes/TimeEntryVerifyTimeZoneJobTest.cls            Dependent class is invalid and needs recompilation:
                                                                              Class TimeEntryVerifyTimeZoneJob : Dependent class is invalid and needs recompilation:
                                                                              Class SlackService : Field does not exist: SlackTeamId__c on Account (67:31)
force-app/main/default/pages/SlashclockCallback.page                         Apex class 'SlashclockCallbackController' does not exist
martyychang commented 6 years ago

One more silly error...

=== Push Errors
PROJECT PATH                                                           ERROR
─────────────────────────────────────────────────────────────────────  ──────────────────────────────────────────────────────────────────────
force-app/main/default/layouts/Contact-Contact Layout.layout-meta.xml  In field: QuickAction - no QuickAction named FeedItem.RypplePost found
martyychang commented 6 years ago

Deleting the unknown RypplePost action fixed the problem