TeamCity Bvcms / Build [Build 2803](https://builds.tpsdb.com/viewLog.html?buildId=9921&buildTypeId=Bvcms_Build) outcome was **FAILURE**
Summary: Tests failed: 94 (91 new), passed: 69 Build time: 00:20:01
### Failed tests
```
Database collection (2): CMSWebTests.CodeValueModelTests.Should_be_able_to_get_MemberTypeCodes: Shouldly.ShouldAssertException : b.Count()
    should be
16
    but was
0
   at CMSWebTests.CodeValueModelTests.Should_be_able_to_get_MemberTypeCodes() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Code\CodeValueModelTests.cs:line 39

Database collection (1): CmsDataTests.PythonModelTests.AddContributionDetailTest(date: "2019-10-19", cDate: "10/17/2019 23:11:00", fundid: 1, amount: "60.00", checkno: "", routing: "1234567890", account: "951753", cType: 1): System.Exception : Error in datascriptStarter.sql:
Violation of PRIMARY KEY constraint 'PK_Content_1'. Cannot insert duplicate key in object 'dbo.Content'. The duplicate key value is (1).
Drop constraints from [dbo].[Volunteer]
Drop constraints from [dbo].[Users]
Drop constraints from [dbo].[UserRole]
Drop constraints from [dbo].[Task]
Drop constraints from [dbo].[TagPerson]
Drop constraints from [dbo].[Tag]
Drop constraints from [dbo].[RecReg]
Drop constraints from [dbo].[People]
Drop constraints from [dbo].[OrganizationMembers]
Drop constraints from [dbo].[Families]
Drop constraints from [dbo].[EnrollmentTransaction]
Drop constraints from [dbo].[OrgSchedule]
Drop constraints from [dbo].[DivOrg]
Drop constraints from [dbo].[ProgDiv]
Drop constraints from [dbo].[Organizations]
Drop constraint FK_AttendWithAbsents_TBL_ORGANIZATIONS_TBL from [dbo].[Attend]
Drop constraint contactsHad__organization from [dbo].[Contact]
Drop constraint FK_Coupons_Organizations from [dbo].[Coupons]
Drop constraint FK_GoerSenderAmounts_Organizations from [dbo].[GoerSenderAmounts]
Drop constraint FK_MEETINGS_TBL_ORGANIZATIONS_TBL from [dbo].[Meetings]
Drop constraint FK_MemberTags_Organizations from [dbo].[MemberTags]
Drop constraint FK_OrganizationExtra_Organizations from [dbo].[OrganizationExtra]
Drop constraint FK_OrgMemberExtra_Organizations from [dbo].[OrgMemberExtra]
Drop constraint FK_PrevOrgMemberExtra_Organization from [dbo].[PrevOrgMemberExtra]
Drop constraint FK_Resource_Organization from [dbo].[Resource]
Drop constraint FK_ResourceOrganization_Organizations from [dbo].[ResourceOrganization]
Drop constraints from [lookup].[MemberType]
Drop constraint FK_Attend_MemberType from [dbo].[Attend]
Drop constraints from [dbo].[Division]
Drop constraint FK_Coupons_Division from [dbo].[Coupons]
Drop constraint FromPromotions__FromDivision from [dbo].[Promotion]
Drop constraint ToPromotions__ToDivision from [dbo].[Promotion]
Drop constraint FK_Resource_Division from [dbo].[Resource]
Drop constraints from [dbo].[ChangeDetails]
Drop constraint FK_VoluteerApprovalIds_VolunteerCodes from [dbo].[VoluteerApprovalIds]
Drop constraint FK_Zips_ResidentCode from [dbo].[Zips]
Drop constraint FK_Contribution_ContributionType from [dbo].[Contribution]
Drop constraint FK_Contribution_ContributionStatus from [dbo].[Contribution]
Drop constraint FK_Contacts_ContactTypes from [dbo].[Contact]
Drop constraint FK_NewContacts_ContactReasons from [dbo].[Contact]
Drop constraint FK_BUNDLE_HEADER_TBL_BundleStatusTypes from [dbo].[BundleHeader]
Drop constraint FK_BUNDLE_HEADER_TBL_BundleHeaderTypes from [dbo].[BundleHeader]
Drop constraint FK_AttendWithAbsents_TBL_AttendType from [dbo].[Attend]
Drop constraint FK_Meetings_AttendCredit from [dbo].[Meetings]
Drop constraint FK_TaskListOwners_TaskList from [dbo].[TaskListOwners]
Drop constraint FK_Contacts_Ministries from [dbo].[Contact]
Drop constraint FK_Contribution_ExtraData from [dbo].[Contribution]
Drop constraint BundleHeaders__Fund from [dbo].[BundleHeader]
Drop constraint FK_Contribution_ContributionFund from [dbo].[Contribution]
Drop constraint FK_RecurringAmounts_ContributionFund from [dbo].[RecurringAmounts]
Drop constraint FK_ContentKeyWords_Content from [dbo].[ContentKeyWords]
Add rows to [dbo].[BackgroundCheckMVRCodes]
Operation applied to 51 rows out of 51
Add rows to [dbo].[ChangeLog]
Operation applied to 7 rows out of 7
Add rows to [dbo].[Content]
   at SharedTestFixtures.DatabaseFixture.EnsureDatabaseExists() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseFixture.cs:line 46
   at SharedTestFixtures.DatabaseFixture..ctor() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseFixture.cs:line 15

Database collection (2): CMSWebTests.Areas.Manage.Models.VolunteerCommitmentsModelTest.ShouldCalculateFirstSundayOfTheMonth(year: 2019, month: 12, result: "12/01/2019"): System.Data.SqlClient.SqlException : Invalid column name 'TripFundingPagesEnable'.
Invalid column name 'TripFundingPagesPublic'.
Invalid column name 'TripFundingPagesShowAmounts'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at CmsData.CMSDataContext.LoadOrganizationById(Nullable`1 id) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 216
   at CmsWeb.Areas.Dialog.Models.NewOrganizationModel..ctor(Nullable`1 id, Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Models\OrganizationModel.cs:line 25
   at CmsWeb.Areas.Dialog.Controllers.AddOrganizationController.Index(Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Controllers\AddOrganizationController.cs:line 21
   at CMSWebTests.FakeOrganizationUtils.MakeFakeOrganization(IRequestManager requestManager, Organization Orgconfig) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\TestUtils\FakeOrganizationUtils.cs:line 25
   at CMSWebTests.Areas.Manage.Models.VolunteerCommitmentsModelTest.ShouldCalculateFirstSundayOfTheMonth(Int32 year, Int32 month, String result) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Areas\Manage\Models\VolunteerCommitmentsModelTest.cs:line 29

Webapp collection (1): IntegrationTests.Areas.People.Views.Person.PersonViewsTests.Should_Hide_Giving_Tab: System.Data.SqlClient.SqlException : The INSERT statement conflicted with the FOREIGN KEY constraint "FK_People_DropType". The conflict occurred in database "CMS_localhost", table "lookup.DropType", column 'Id'.
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
   at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
   at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
   at CmsData.CMSDataContext.SubmitChanges(ConflictMode failureMode) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 125
   at System.Data.Linq.DataContext.SubmitChanges()
   at SharedTestFixtures.DatabaseTestBase.CreateUser(String username, String password, Family family, Person person, String[] roles) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseTestBase.cs:line 45
   at IntegrationTests.Areas.People.Views.Person.PersonViewsTests.Should_Hide_Giving_Tab() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\IntegrationTests\Areas\People\Views\Person\PersonViewsTests.cs:line 23

Database collection (2): CMSWebTests.Areas.OnlineReg.Models.AskChurch.NewAskChurchQuestionTest.ShouldPassAskChurchQuestions(memberus: True, otherchurch: True, nochurch: False): System.Data.SqlClient.SqlException : Invalid column name 'TripFundingPagesEnable'.
Invalid column name 'TripFundingPagesPublic'.
Invalid column name 'TripFundingPagesShowAmounts'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at CmsData.CMSDataContext.LoadOrganizationById(Nullable`1 id) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 216
   at CmsWeb.Areas.Dialog.Models.NewOrganizationModel..ctor(Nullable`1 id, Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Models\OrganizationModel.cs:line 25
   at CmsWeb.Areas.Dialog.Controllers.AddOrganizationController.Index(Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Controllers\AddOrganizationController.cs:line 21
   at CMSWebTests.FakeOrganizationUtils.MakeFakeOrganization(IRequestManager requestManager, Organization Orgconfig) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\TestUtils\FakeOrganizationUtils.cs:line 25
   at CMSWebTests.Areas.OnlineReg.Models.AskChurch.NewAskChurchQuestionTest.ShouldPassAskChurchQuestions(Boolean memberus, Boolean otherchurch, Boolean nochurch) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Areas\OnlineReg\Models\NewAskChurchQuestionTest.cs:line 34

Database collection (2): CMSWebTests.Models.ExportPeopleTests.ExcelDonorTotals_Should_Not_Bring_Reversed_or_Returned_contributions(campusid: 0, pledges: False, nontaxdeductible: False, includeUnclosed: False, tagid: null, fundids: null): System.Data.SqlClient.SqlException : Invalid column name 'ReferenceId'.
Invalid column name 'ReferenceIdType'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
   at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
   at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
   at CmsData.CMSDataContext.SubmitChanges(ConflictMode failureMode) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 125
   at System.Data.Linq.DataContext.SubmitChanges()
   at SharedTestFixtures.MockContributions.CreateSaveBundle(CMSDataContext db, Nullable`1 contributionDate) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\MockContributions.cs:line 57
   at CMSWebTests.Models.ExportPeopleTests.CreateTestContributionSet(CMSDataContext db, DateTime dt) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Models\ExportPeopleTest.cs:line 171
   at CMSWebTests.Models.ExportPeopleTests.ExcelDonorTotals_Should_Not_Bring_Reversed_or_Returned_contributions(Int32 campusid, Boolean pledges, Nullable`1 nontaxdeductible, Boolean includeUnclosed, Nullable`1 tagid, String fundids) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Models\ExportPeopleTest.cs:line 83

Database collection (1): CmsDataTests.CMSDataContextFunctionTests.GetTotalContributionsDonorTest: System.Exception : Error in datascriptStarter.sql:
Violation of PRIMARY KEY constraint 'PK_Content_1'. Cannot insert duplicate key in object 'dbo.Content'. The duplicate key value is (1).
Drop constraints from [dbo].[Volunteer]
Drop constraints from [dbo].[Users]
Drop constraints from [dbo].[UserRole]
Drop constraints from [dbo].[Task]
Drop constraints from [dbo].[TagPerson]
Drop constraints from [dbo].[Tag]
Drop constraints from [dbo].[RecReg]
Drop constraints from [dbo].[People]
Drop constraints from [dbo].[OrganizationMembers]
Drop constraints from [dbo].[Families]
Drop constraints from [dbo].[EnrollmentTransaction]
Drop constraints from [dbo].[OrgSchedule]
Drop constraints from [dbo].[DivOrg]
Drop constraints from [dbo].[ProgDiv]
Drop constraints from [dbo].[Organizations]
Drop constraint FK_AttendWithAbsents_TBL_ORGANIZATIONS_TBL from [dbo].[Attend]
Drop constraint contactsHad__organization from [dbo].[Contact]
Drop constraint FK_Coupons_Organizations from [dbo].[Coupons]
Drop constraint FK_GoerSenderAmounts_Organizations from [dbo].[GoerSenderAmounts]
Drop constraint FK_MEETINGS_TBL_ORGANIZATIONS_TBL from [dbo].[Meetings]
Drop constraint FK_MemberTags_Organizations from [dbo].[MemberTags]
Drop constraint FK_OrganizationExtra_Organizations from [dbo].[OrganizationExtra]
Drop constraint FK_OrgMemberExtra_Organizations from [dbo].[OrgMemberExtra]
Drop constraint FK_PrevOrgMemberExtra_Organization from [dbo].[PrevOrgMemberExtra]
Drop constraint FK_Resource_Organization from [dbo].[Resource]
Drop constraint FK_ResourceOrganization_Organizations from [dbo].[ResourceOrganization]
Drop constraints from [lookup].[MemberType]
Drop constraint FK_Attend_MemberType from [dbo].[Attend]
Drop constraints from [dbo].[Division]
Drop constraint FK_Coupons_Division from [dbo].[Coupons]
Drop constraint FromPromotions__FromDivision from [dbo].[Promotion]
Drop constraint ToPromotions__ToDivision from [dbo].[Promotion]
Drop constraint FK_Resource_Division from [dbo].[Resource]
Drop constraints from [dbo].[ChangeDetails]
Drop constraint FK_VoluteerApprovalIds_VolunteerCodes from [dbo].[VoluteerApprovalIds]
Drop constraint FK_Zips_ResidentCode from [dbo].[Zips]
Drop constraint FK_Contribution_ContributionType from [dbo].[Contribution]
Drop constraint FK_Contribution_ContributionStatus from [dbo].[Contribution]
Drop constraint FK_Contacts_ContactTypes from [dbo].[Contact]
Drop constraint FK_NewContacts_ContactReasons from [dbo].[Contact]
Drop constraint FK_BUNDLE_HEADER_TBL_BundleStatusTypes from [dbo].[BundleHeader]
Drop constraint FK_BUNDLE_HEADER_TBL_BundleHeaderTypes from [dbo].[BundleHeader]
Drop constraint FK_AttendWithAbsents_TBL_AttendType from [dbo].[Attend]
Drop constraint FK_Meetings_AttendCredit from [dbo].[Meetings]
Drop constraint FK_TaskListOwners_TaskList from [dbo].[TaskListOwners]
Drop constraint FK_Contacts_Ministries from [dbo].[Contact]
Drop constraint FK_Contribution_ExtraData from [dbo].[Contribution]
Drop constraint BundleHeaders__Fund from [dbo].[BundleHeader]
Drop constraint FK_Contribution_ContributionFund from [dbo].[Contribution]
Drop constraint FK_RecurringAmounts_ContributionFund from [dbo].[RecurringAmounts]
Drop constraint FK_ContentKeyWords_Content from [dbo].[ContentKeyWords]
Add rows to [dbo].[BackgroundCheckMVRCodes]
Operation applied to 51 rows out of 51
Add rows to [dbo].[ChangeLog]
Operation applied to 7 rows out of 7
Add rows to [dbo].[Content]
   at SharedTestFixtures.DatabaseFixture.EnsureDatabaseExists() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseFixture.cs:line 46
   at SharedTestFixtures.DatabaseFixture..ctor() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseFixture.cs:line 15

Webapp collection (1): IntegrationTests.Areas.Manage.QueryControllerTests.TestSearchBuilderOrgsDropdownOption: System.Data.SqlClient.SqlException : The INSERT statement conflicted with the FOREIGN KEY constraint "FK_People_DropType". The conflict occurred in database "CMS_localhost", table "lookup.DropType", column 'Id'.
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
   at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
   at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
   at CmsData.CMSDataContext.SubmitChanges(ConflictMode failureMode) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 125
   at System.Data.Linq.DataContext.SubmitChanges()
   at SharedTestFixtures.DatabaseTestBase.CreateUser(String username, String password, Family family, Person person, String[] roles) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseTestBase.cs:line 45
   at IntegrationTests.Support.AccountTestBase.LoginAsAdmin() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\IntegrationTests\Support\AccountTestBase.cs:line 39
   at IntegrationTests.Areas.Manage.QueryControllerTests.TestSearchBuilderOrgsDropdownOption() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\IntegrationTests\Areas\General\QueryControllerTests.cs:line 19

Database collection (2): CMSWebTests.Models.ExportPeopleTests.DonorDetails_Should_Not_Bring_Reversed_or_Returned_contributions(fundid: 0, campusid: 0, pledges: False, nontaxdeductible: null, includeUnclosed: True, tagid: null, fundids: null): System.Data.SqlClient.SqlException : Invalid column name 'ReferenceId'.
Invalid column name 'ReferenceIdType'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
   at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
   at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
   at CmsData.CMSDataContext.SubmitChanges(ConflictMode failureMode) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 125
   at System.Data.Linq.DataContext.SubmitChanges()
   at SharedTestFixtures.MockContributions.CreateSaveBundle(CMSDataContext db, Nullable`1 contributionDate) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\MockContributions.cs:line 57
   at CMSWebTests.Models.ExportPeopleTests.CreateTestContributionSet(CMSDataContext db, DateTime dt) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Models\ExportPeopleTest.cs:line 171
   at CMSWebTests.Models.ExportPeopleTests.DonorDetails_Should_Not_Bring_Reversed_or_Returned_contributions(Int32 fundid, Int32 campusid, Boolean pledges, Nullable`1 nontaxdeductible, Boolean includeUnclosed, Nullable`1 tagid, String fundids) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Models\ExportPeopleTest.cs:line 30

Database collection (2): CMSWebTests.Areas.OnlineReg.Models.AskChurch.NewAskChurchQuestionTest.ShouldPassAskChurchQuestions(memberus: False, otherchurch: True, nochurch: False): System.Data.SqlClient.SqlException : Invalid column name 'TripFundingPagesEnable'.
Invalid column name 'TripFundingPagesPublic'.
Invalid column name 'TripFundingPagesShowAmounts'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at CmsData.CMSDataContext.LoadOrganizationById(Nullable`1 id) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 216
   at CmsWeb.Areas.Dialog.Models.NewOrganizationModel..ctor(Nullable`1 id, Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Models\OrganizationModel.cs:line 25
   at CmsWeb.Areas.Dialog.Controllers.AddOrganizationController.Index(Boolean displayCopySettings) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsWeb\Areas\Dialog\Controllers\AddOrganizationController.cs:line 21
   at CMSWebTests.FakeOrganizationUtils.MakeFakeOrganization(IRequestManager requestManager, Organization Orgconfig) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\TestUtils\FakeOrganizationUtils.cs:line 25
   at CMSWebTests.Areas.OnlineReg.Models.AskChurch.NewAskChurchQuestionTest.ShouldPassAskChurchQuestions(Boolean memberus, Boolean otherchurch, Boolean nochurch) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\CMSWebTests\Areas\OnlineReg\Models\NewAskChurchQuestionTest.cs:line 34

Webapp collection (1): IntegrationTests.Areas.Manage.SetupTests.Create_Role_Test: System.Data.SqlClient.SqlException : The INSERT statement conflicted with the FOREIGN KEY constraint "FK_People_DropType". The conflict occurred in database "CMS_localhost", table "lookup.DropType", column 'Id'.
The statement has been terminated.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
   at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)
   at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)
   at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
   at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
   at CmsData.CMSDataContext.SubmitChanges(ConflictMode failureMode) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\CmsData\DbUtil\Context.cs:line 125
   at System.Data.Linq.DataContext.SubmitChanges()
   at SharedTestFixtures.DatabaseTestBase.CreateUser(String username, String password, Family family, Person person, String[] roles) in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\UnitTests\SharedTestFixtures\DatabaseTestBase.cs:line 45
   at IntegrationTests.Areas.Manage.SetupTests.Create_Role_Test() in C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\IntegrationTests\Areas\Setup\SetupTests.cs:line 20

##### there are 84 more failed tests, see build details
```


There's still the launchBlocker, but the problem is that we only use that to block `Runtime.runIfWaitingForDebugger`. I can't seem to get 'wait for debugger' to work correctly when booting up electron, so although we still wait and call that, the app will have went ahead in the meantime and possibly passed our breakpoint locations in execution.

An alternative to waiting for the workspace to be be processed would be to install the default `_scriptSourceMapHandler`, which would allow us to use the runtime logic until we finish parsing the workspace. The downside is that this'll eat CPU cycles we could otherwise spend on workspace processing, but there are ways around that (e.g. making the workspace process in a child process/worker thread).

Thinking about that more, that might be the best of both worlds... avoiding slowing our launch down, while still speeding things up once the processing completes.


169848630_Issue7625 (mjwitte) - x86_64-Linux-Ubuntu-18.04-gcc-7.4: OK (2621 of 2621 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.png) ![Test Badge](http://img.shields.io/badge/tests%20passed-100.0%25-green.png)


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit 968cf2bedccb4e3a16b8b106495ce2433d87a555.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


TeamCity Bvcms / Build [Build 2804](https://builds.tpsdb.com/viewLog.html?buildId=9922&buildTypeId=Bvcms_Build) outcome was **FAILURE**
Summary: Error while applying patch Build time: 00:01:06


# Резюме:
## На тройку
- [x] В репозитории есть все необходимые инфраструктурные файлы:
  - [x] в проекте есть package.json;
  - [x] .editorconfig;
  - [x] .eslintrc, расширяющий конфигурацию airbnb-base, а также необходимые для работы линтера dev-зависимости;
  - [x] .gitignore.
  - [x] в .eslintrc добавлено исключение для _id.
- [x] В разделе scripts файла package.json:
  - [x] есть команда npm run start, которая запускает сервер на localhost:3000;
  - [x] и npm run dev, которая запускает сервер на localhost:3000 с хот релоудом.
- [ ] Описанные роуты работают корректно:
  **в режиме разработки секретный ключ в мидвлваре auth и функции логина не совпадают. Из-за чего авторизоваться не получается**
  - [ ] запрос на GET /users/me возвращает информацию о пользователе (email и имя) (API не должно возвращать id пользователя и хеш пароля);
![image](https://user-images.githubusercontent.com/17438227/69179023-d394fa80-0b1b-11ea-8b76-d90a9050e9e4.png)

  - [ ] GET /articles — все сохранённые статьи;
  - [ ] POST /articles создаёт статью с переданными в теле данными;
![image](https://user-images.githubusercontent.com/17438227/69179051-e4457080-0b1b-11ea-805a-335f1461d905.png)

  - [ ] DELETE /articles/articleId удаляет статью по _id;
  **API будет проверено после исправления ошибки на создание статьи и авторизации на сервере**
- [x] Все роуты, кроме /signin и /signup, защищены авторизацией.
- [x] Ошибки API обрабатываются:
  - [ ] если в запросе что-то не так, сервер возвращает ответ с ошибкой и её статусом;
  **API будет проверено после исправления ошибки на создание статьи и авторизации на сервере**
  - [x] асинхронные обработчики завершены блоком catch;
  - [ ] API не возвращает стандартных ошибок базы данных или Node.js.
  **API будет проверено после исправления ошибки на создание статьи и авторизации на сервере**
- [x] Реализовано бережное хранение пароля:
  - [x] пароль хранится в зашифрованном виде;
  - [x] API не возвращает хеш пароля клиенту.
- [x] Данные валидируются перед добавлением в базу.
- [x] Пользователь не может удалить сохранённую карточку из профиля другого пользователя.
- [x] К серверу можно обратиться и по http, и по https, обращаясь к домену, указанному в README.md.

## На четвёрку
- [x] Асинхронные операции реализованы промисами или async/await.
- [x] Запрос валидируется перед передачей контроллеру. Тело и, где необходимо, заголовки и параметры, проверяются по соответствующим схемам. Если запрос не соответствует схеме, обработка не передаётся контроллеру, и клиент получает ошибку валидации.
- [x] Настроено логгирование:
  - [x] запросы и ответы записываются в файл request.log;
  - [x] ошибки записываются в файл error.log;
  - [x] файлы логов не добавляются в репозиторий.
- [ ] Ошибки обрабатываются централизованным обработчиком.
![image](https://user-images.githubusercontent.com/17438227/69179131-122ab500-0b1c-11ea-94a7-5ee121bbe9e9.png)
- [x] API приложения располагается на домене вида: name.zone/api, а не просто name.zone:

## На пятёрку
- [x] Для ошибок API созданы классы, расширяющие конструктор Error.
- [x] Используется модуль Helmet для установки заголовков, связанных с безопасностью.
- [x] Конфигурация и константы в отдельных файлах:
  - [ ] адрес Mongo-сервера, секретный ключ для JWT в режиме разработки, вынесены в отдельный конфигурационный файл;
  - [ ] константы приложения — сообщения ответов и ошибок — вынесены в отдельный файл с константами.
- [x] Настроен rate limiter: число запросов с одного IP в единицу времени ограничено.
- [x] API размещено на отдельном поддомене, например: api.news-explorer.tk.

# доп комментарий
- отсутствует зависимость `nodemon` в файле `package.json`


TeamCity Bvcms / Build [Build 2805](https://builds.tpsdb.com/viewLog.html?buildId=9923&buildTypeId=Bvcms_Build) is now running


TeamCity Bvcms / Build [Build 2805](https://builds.tpsdb.com/viewLog.html?buildId=9923&buildTypeId=Bvcms_Build) outcome was **UNKNOWN**
Summary: Canceled (Error while applying patch; cannot find commit 33c7e48160cb3da9708b3cad58081d0e9cb0cf01 in the https://bvcms-teamcity@github.com/bvcms/bvcms repository, possible reason: refs/pull/682/merge branch was updated and the commit selected for the... Build time: 00:00:09


TeamCity Bvcms / Build [Build 2806](https://builds.tpsdb.com/viewLog.html?buildId=9924&buildTypeId=Bvcms_Build) is now running


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit efcdd5a127d71403ca32dec9d629b956ce43b048.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


Раз используешь классы, то лучше конеш сразу в initialize задавать параметры `a` и `h`.

Ну еще для этого задания класс это излишний код (но молодец что умеешь пользоваться классами 👍)


Successfully deployed to following URLs:

* https://axelekwallse-kqxcjdha2.now.sh
* https://axelekwall.com
* https://axelekwall.se
* https://www.axelekwall.se
* https://www.axelekwall.com
* https://axelekwallse.axelekwall.now.sh
* https://axelekwallse-git-master.axelekwall.now.sh


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit af92606ba90dffaad33a3930818753b6e24ab003.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


@Infernio I'm pretty sure the large exe size is because tkinter and such are being included for some reason - I did not spend the time working on that since this was never meant to be a permanent change (due to all those issues in your commit message) but it *probably* could be reduced to py2exe sizes.


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit b4e39e3362fec35ee8c54ef719661816e1966b48.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


нам по сути незачем сохранять значение в переменной calс


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit d886182d22095bc415724228063ff759a2446db1.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


Successfully deployed to following URLs:

* https://axelekwallse-fy9hoahxf.now.sh
* https://axelekwall.com
* https://axelekwall.se
* https://www.axelekwall.se
* https://www.axelekwall.com
* https://axelekwallse.axelekwall.now.sh
* https://axelekwallse-git-master.axelekwall.now.sh


SQL Text File


You are pushing commits at a very fast pace (accross the whole organization).
Due to that, we cannot deploy the commit 856fc914176609a5512ec68ceac16594071cd346.

You can try again later or [upgrade](https://zeit.co/account/plan) your plan.


Successfully deployed to following URLs:

* https://cviceni-test-2118gvoxu.now.sh
* https://cviceni-test.historylab.now.sh
* https://cviceni-test-git-master.historylab.now.sh


Изменяй данные до передачи в класс

`gets.chomp`

и можешь избавиться от 3 строчки кода и использовать attr_accessor


These both the files will require GTK library to compile


Successfully deployed to following URLs:

* https://axelekwallse-4s2rspd1g.now.sh
* https://axelekwall.com
* https://axelekwall.se
* https://www.axelekwall.se
* https://www.axelekwall.com
* https://axelekwallse.axelekwall.now.sh
* https://axelekwallse-git-master.axelekwall.now.sh


-icingadb feauture
+icingadb feature


Тоже самое что и наверху


I will take a look at it


I agree. Now that the draft mentioned in that commit is published, as IEEE 754-2019, WebAssembly's `min` and `max` operators correspond to IEEE 754's `minimum` and `maximum` functions, and it would make sense to add additional WebAssembly instructions corresponding to IEEE 754's `minimumNumber` and `maximumNumber` operations, which would also correspond to C's `fmin`/`fmax` and similar functions in other languages. I myself am unable to champion this at this time, but I'd support anyone interesting in doing so.


Successfully deployed to following URLs:

* https://lunch-llbuhpnt8.now.sh
* https://stena-lunch.now.sh
* https://lunch.jlindsk.now.sh
* https://lunch-git-master.jlindsk.now.sh


Successfully deployed to following URLs:

* https://axelekwallse-di7c10c6f.now.sh
* https://axelekwall.com
* https://axelekwall.se
* https://www.axelekwall.se
* https://www.axelekwall.com
* https://axelekwallse.axelekwall.now.sh
* https://axelekwallse-git-master.axelekwall.now.sh


This commit has been mentioned on **Discourse Meta**. There might be relevant details there:

https://meta.discourse.org/t/disabling-local-username-password-based-accounts-breaks-oauth-signup/133673/4


169848630_Issue7625 (mjwitte) - x86_64-Linux-Ubuntu-18.04-cppcheck: OK (0 of 0 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.png)


Deploy preview for _website_ ready!

Built with commit undefined

https://pokedex-with-react-hooks-osy33vrkz.now.sh


done in https://github.com/StylishThemes/GitHub-Dark/commit/2042a5f2f476603a40889f8f7b351fec9dbaf00a


Deployment failed with the following error:

~~~
Could not find a secret by name "airtable-api-zemoga"
~~~


Successfully deployed to following URLs:

* https://ripe-components-vue-3cn880u4j.now.sh
* https://ripe-components-vue.platforme.now.sh
* https://ripe-components-vue-git-master.platforme.now.sh


I agree with you, but in React, component name starts with a capital letter and I prefer to use the file name for the component

import OwnerHeader from "./OwnerHeader";

<OwnerHeader
                 :
            />


169848630_Issue7625 (mjwitte) - x86_64-Linux-Ubuntu-18.04-custom_check: OK (11 of 11 tests passed, 0 test warnings)

![Build Badge](http://img.shields.io/badge/build%20status-passing-green.png)


Updated 11/19


Можно использовать `@slides.max(3)`
ну или вовсе через [sort](https://ruby-doc.org/core-2.6.3/Array.html#method-i-sort) сделать
а дальше сохранить в переменных эти значения
hypotenuse, side1, side2
и никакие итерации не понадобятся


Successfully deployed to following URLs:

* https://gatsby-theme-carbon-ofsgfcu97.now.sh
* https://gatsby-theme-carbon.now.sh
* https://gatsby-theme-carbon.carbon-design-system.now.sh
* https://gatsby-theme-carbon-git-master.carbon-design-system.now.sh


You probably want to suggest to rewind the logger to associate already processed rows to newly emitted rows -- I rather not go down that road, so for now this is what works best without ending with a mess of code.


Successfully deployed to following URLs:

* https://portfolio-q8os17iou.now.sh
* https://jeffchang.io
* https://www.jeffchang.io
* https://portfolio.me153.now.sh
* https://portfolio-git-master.me153.now.sh


Successfully deployed to following URLs:

* https://lunch-ar6084nhc.now.sh
* https://stena-lunch.now.sh
* https://lunch.jlindsk.now.sh
* https://lunch-git-master.jlindsk.now.sh


Would you like to compare run time characteristics for the usage of a SmPL ellipsis instead of the metavariable “AL”?


Copy of this build can be found at
https://www.mewbuilds.com/build/78515e94594b4cc8a02ed85549b5a0395e469d83/index.html
                       https://www.cloudflare-ipfs.com/ipfs/QmcHEL7bjyST7Dz568awDmVRVMkzbrG2YvXBGyYjAQT7Rq
                       Virus Total analysis
                       https://www.virustotal.com/file/7cded5af47be8fd558102e552f3fc959c543a9c03b0e4ece64ef5903e4e072e2/analysis/1574192398/


`Math.sqrt(discriminant)`
дважды вычисляешь дискриминант, можно сохранить в переменной и использовать


Dla Kacpera xd


Successfully deployed to following URLs:

* https://styled-components-979we1hkv.now.sh
* https://www.styled-components.com
* https://styled-components.styledcomponents1.now.sh
* https://styled-components-git-master.styledcomponents1.now.sh


Successfully deployed to following URLs:

* https://ripe-components-vue-6upumdab8.now.sh
* https://ripe-components-vue.platforme.now.sh
* https://ripe-components-vue-git-master.platforme.now.sh


Successfully deployed to following URLs:

* https://lunch-4f60dkqdj.now.sh
* https://stena-lunch.now.sh
* https://lunch.jlindsk.now.sh
* https://lunch-git-master.jlindsk.now.sh


Successfully deployed to following URLs:

* https://rickboothdotme-2-ogzeqouuv.now.sh
* https://rickboothdotme-2-phi-murex.now.sh
* https://rickbooth.me
* https://rickboothdotme-2.rixcy.now.sh
* https://rickboothdotme-2-git-master.rixcy.now.sh


Successfully deployed to following URLs:

* https://news-ssr-qnou4x47b.now.sh
* https://shipping-news.tech
* https://dnews.cloud
* https://news-ssr.kunukn.now.sh
* https://news-ssr-git-master.kunukn.now.sh


Successfully deployed to following URLs:

* https://lunch-k1zuj5q9q.now.sh
* https://stena-lunch.now.sh
* https://lunch.jlindsk.now.sh
* https://lunch-git-master.jlindsk.now.sh


Deployment failed with the following error:

~~~
Your `package.json` file is missing a `build` property inside the `script` property.
~~~


Successfully deployed to following URLs:

* https://budgeteer-fx8oy46gj.now.sh
* https://budgeteer-gamma-topaz.now.sh
* https://budgeteer.stephenboynton.now.sh
* https://budgeteer-git-master.stephenboynton.now.sh


Successfully deployed to following URLs:

* https://todaysmath-58ribh39w.now.sh
* https://todaysmath-rho-ebon.now.sh
* https://todaysmath.kielbyrne.com
* https://todaysmath.kielbyrne.now.sh
* https://todaysmath-git-master.kielbyrne.now.sh


correction on commit message: changed to ubuntu 18.04


Successfully deployed to following URLs:

* https://axelekwallse-6b479ajzu.now.sh
* https://axelekwall.com
* https://axelekwall.se
* https://www.axelekwall.se
* https://www.axelekwall.com
* https://axelekwallse.axelekwall.now.sh
* https://axelekwallse-git-master.axelekwall.now.sh


> rewind the logger to associate already processed rows to newly emitted rows -- I rather not go down that road

No, that's not what I was going for, my suggestion is color all the domains in red that **fail** CNAME test. For example, `f7ds.liberation.fr`, in the logger and in the popup panel, so I know that there's something suspicious about that domain when I open the popup panel or the logger, and I will start investigating it and add afilter/rule about it. Currently only people who know about `f7ds.liberation.fr` will do something about it, but users won't be as there's NO indication in the popup and in the logger that anything is wrong with `f7ds.liberation.fr` entry, so make identification of such domains easier in the popup panel/logger. Doable ?


commit msg says 19.04


/ has errors:
* /tox.ini is missing required string: '[testenv:docker]'
* /tox.ini is missing required string: '[testenv]'
* /tox.ini is missing required string: '[testenv:check]'


It should be the whole node, shouldn't it?