The release notes from version 1.4.0.0 of C#Bot
Tags: c#bot, release notes, release
Features
Improvements
- Validation will now catch entities without a name.
- Add Protected regions to frontend.tsx, NavigationLink.tsx, FormTile.tsx and TileOptions.tsx
- Update dB Set to be retrieved from the DbContext
- Added extra configuration to entity collection.
- Date time pickers will no longer appear readonly by default.
- Alter controller endpoints to return data counts as well as results
Resolved Defects
- Fixed bug where forms behaviour date was incorrectly formatted.
- Resolved GraphQl condition for EntityCollection when using a combination of default and filter conditions.
- Fixed null reference exception sometimes being thrown exception in the GraphQl model type.
- Resolved issues creating entities which had both user and forms behaviours.
Migration Path
Styling
There is a new folder structure in scss. There is an admin and frontend folder. The only folder that should be touched on is frontend, as it contains protected regions. admin has now been moved into a templated area. Only dashboard.scss
inside the admin/pages
folder has protected regions. The rest are not protected.
React Component Changes
EntityCollection
The filters
prop was renamed to additionalFilters
to correctly reflect it’s purpose of adding additional filters to
the collection rather then replacing the existing ones.
IFilter
The referenceResolveFunction
was renamed to enumResolveFunction
to correctly reflect it’s purpose.
Protected Regions
In this release several protected regions have been changed. Any changes done in these protected regions will need to be reapplied.
File | Protected Regions | Notes |
---|---|---|
serverside/web/Helpers/DataSeedHelper.cs | Configure development seeding here | This was replaced by a new protected region that wraps the entire block |
serverside/web/PROJECTNAME.csproj | Configure development seeding here | This was replaced by a new protected region that wraps the entire block |
clientside/src/Views/Components/CRUD/EntityCRUD.tsx | Override entity collection render here | This was replaced by a new protected region that wraps the entire function |
clientside/src/Views/Frontend.tsx.egl | customize the universial public routes | Corrected typo in name and changed comment style to JSX |
clientside/src/Views/Pages/RegistrationConfirmPage.tsx.egl | Add any extra imports here | Reworded to correctly reflect purpose |
clientside/src/Views/Pages/RegistrationPage.tsx.egl | Add any extra imports here | Reworded to correctly reflect purpose |
clientside/src/Views/Pages/RegistrationPage.tsx.egl | Add extra constructor logic here | Moved to wrap entire constructor |
testtarget/API/EntityObjects/UserBaseEntity.cs | Adjust the db context | This was replaced with a new protected region that wraps the entire function |
testtarget/Selenium/Tests/BotWritten/Login/LoginTestInvalid.feature | Add any addition tests here | Fixed the typo |
testtarget/Serverside/Tests/Integration/BotWritten/CrudTests.cs | Configure controller get test for ENTITYNAME here | This was replaced with a new protected region that wraps the entire function |