I noticed that there is now a second button on the Download page for ASP.NET Zero. The button that had always been there before said "Download" but now there is also a "Download Test Project" button. What is the difference? Are the rules for downloading projects with Demo and Test in the name still the same? Or does the Download button register that project as your "real" project regardless of the contents of the project name?
I am using the ASP.NET Core + jQuery v5.4.1 project.
I have been using the included AppService Unit Tests to test my custom AppServices and helper classes. This is great for verifying that my logic is sound at a low level.
That said, I have found that it is helpful to test the entire application from top to bottom. I have found that some of the edits I make to generated Javascript files and/or MVC Controllers break the application while my AppServices run just fine (failures are due to incorrect Dto mappings, etc). I have been doing this "top to bottom" UI testing manually so far.
I have been doing some reading, and it is easy enough to run the ASP.NET Core project on my local machine and run a Test Project that has Selenium WebDriver tests implemented. This would automate my UI test process nicely. The only problem is that running the ASP.NET Core project from command line still instructs it to use the Default connection string, which is a SQL Server LocalDB instance. To automate tests I would need to delete the LocalDB, re-create the LocalDB, and then run the Migrator before testing again. This is long and annoying.
I was wondering if anyone here might have any ideas on how to do an "in-memory" temporary database (like the one implemented for the Unit Tests), but for Selenium UI tests. Any ideas (or alternative approaches) are appreciated.
I am using ASP.NET Core + jQuery v5.3.
I am looking at creating a public-facing API so that calendar services like Google Calendar or Outlook can request an ICS representation of a set of Event entities from our DB.
I will be generating the individual URLs for accessing the API within the application, so we will know the user's ID and the tenant's ID. We can embed this information into the URL and the API will know what to access.
The question ultimately becomes, with ASP.NET Zero / ASP.NET Boilerplate, how would I create an API that DOESN'T require the user to log in? Would I just use the normal ASP.NET Core way or is there a better way?
Thanks!
I am using ASP.NET Core + jQuery v5.3
The following is a snippet from the Index.js of my GeneralEvent entity (generated by RAD Tool). The snippet is part of the DataTable() function. Specifically the "items" of the "rowAction" of the "columnDefs".
items: [
{
text: app.localize('View'),
action: function (data) {
_viewGeneralEventModal.open({ data: data.record });
}
},
{
text: app.localize('Edit'),
visible: function (data) {
var eventObject = data.record.generalEvent;
abp.services.app.generalEvents.hasPermissionForEntity(eventObject)
.done(function (result) {
var hasPermission = result;
console.log(hasPermission);
//return result; // I would like to return this value. This obviously won't work
});
//return _permissions.edit; // original code
},
action: function (data) {
_createOrEditModal.open({ id: data.record.generalEvent.id });
}
},
OK, so hopefully you know what I'm talking about now.
I am making a sort of custom permissions system that is based on OrganizationUnits. Basically, a user can only see the Create/Edit menu option in the RowAction dropdown if he has belongs to the OrganizationUnit of the Event.
I know the "visible" attribute is set using the anonymous function. How would I return a value from my app service? I know what I have above doesn't work because it's asynchronous, but it shows what I'm trying to do.
I guess my question becomes this: How would I set the "visible" property of the RowAction dropdown once my data has been calculated in my AppService?
Thanks!
I am using ASP.NET Core v5.3 jQuery.
I am trying to extend the OrganizationUnit entity to include a boolean called IsOrganizer. I followed the Non-Abstract part of the Extending Entities tutorial to the best of my ability, but ultimately I couldn't follow it for various reasons (not applicable to OrganizationUnit, seems old or for angular version, etc).
So, does anyone have any guidance?
The things I did so far:
Created a new class called ExtendedOrganizationUnit (for lack of a better name) that inherits from OrganizationUnit
Added the new DbSet for ExtendedOrganizationUnit to the DbContext.
Added the added a migration
Updated the database (saw the change successfully)
Edited the OrganizationUnitDto to include my IsOrganizer boolean.
Edited the CreateOrganizationUnitInput to include my IsOrganizer boolean
Edited the UpdateOrganizationUnitInput to include my IsOrganizer boolean
I added a check-box input control to the _CreateModal and _EditModals
Now, I know I need to do something with the CreateOrganizationUnit and UpdateOrganizationUnit methods of the OrganizationUnitAppService. I'm not sure if I need to do anything to the GetOrganizationUnits method.
I think I also need to do something with the following:
What am I missing? Is there anything that I DIDN'T need to change?
I am on ASP.NET Core + jQuery v5.2.
Bug: When adding a user to an Organization Unit through the web GUI, all of the previously created users (users were created manually through the Users GUI) are added to the Organization Unit, regardless of the selected user.
Steps to reproduce bug: Create a new user (create one or more using the Admin account for the Default tenant) Go to Administration > Organization Units Assign a user to any Organization Unit Notice that more than the just the selected user is added to the Organization Unit.
Is this bug reproducible? Or did I mess something up somewhere?
I am using ASP.NET Core + jQuery version 5.2.
So, I've successfully created two new entities with their respective UIs. Location and LocationCategory.
Location contains several properties including a Name. LocationCategory contains a single property called Name.
Since the entities created with the RAD tool are basically Existing Entities, I am following the tutorial found here: [https://aspnetzero.com/Documents/Extending-Existing-Entities]).
Because the RAD tool doesn't support Relationships yet, I manually added a Many to 1 relationship between Location (many) and Location Category (1), applied migration, and updated the database. My database changed as I expected (a Location has one LocationCategory).
I get stuck starting at the "SHOW ADDRESS ON THE UI" section of the Extending Existing Entities tutorial. The data table is set up through the Index.js page and I need to add a column definition.
My first question is: How would I show the Name property of a LocationCategory that is associated with a Location in the data table through the Index.js page? This is an example column definition for the Name property of Location in the Index.js file:
{
targets: 1,
data: "name"
}
I am running the latest version of ASP.NET Core + jQuery in VS 2017
I created a new Edition (Paid) with a 14 day trial I created a new Tenant (Free Trial with Paid edition) from the Login page screen using the New Tenant link (to test how a customer would create a tenant) I got the message "Your account is waiting to be activated by system admin". Does this mean an activation email is sent to the Tenant (obviously not working on the dev machine), or does that mean I need to manually activate the Tenant?
Anyways, I logged into the Host account, navigated to Tenants, and clicked "Edit" on the new Tenant. I tried to set the "IsActive" flag in the editing menu. When I click Save, nothing happens. I noticed that there is an error in the Google Chrome debugger that says "Uncaught TypeError: Cannot read property 'apply' of undefined".
Is this intended behavior because a valid email activation is required for New Tenants? Or is it a bug with the Trial period?
Note: I can set IsActive on a New Tenant using the Standard (Free, Unlimited Duration) edition.
I am working through the PhoneBookDemo for ASP.NET Core + Angular in combination with the brand new Power Tools.
On a brand new project, I add a new Entity called TSEvent. It has a single property (for testing purposes) called Name.
When I try to compile using "npm start", I am given errors:
create-or-edit-tSEvent-modal.component.ts: error TS2305: Module 'service-proxies' has no exported member 'TSEventServiceProxy'.
create-or-edit-tSEvent-modal.component.ts: error TS2305: Module 'service-proxies' has no exported member 'CreateOrEditTSEventDto'.
tSEvent.component.ts: error TS2305: Module 'service-proxies' has no exported member 'TSEventServiceProxy'.
tSEvent.component.ts: error TS2305: Module 'service-proxies"' has no exported member 'TSEventDto'.
service-proxy.module.ts: error TS2551: Property 'TSEventServiceProxy' does not exist on type 'typeof service-proxies'. Did you mean 'TenantServiceProxy'?
Is this a bug in the Power Tools? Do the Power Tools work with ASP.NET Core + Angular project types?