Giter VIP home page Giter VIP logo

rxwebcore's Introduction

rxweb

Clean Code. Built with Purpose

Contributing to rxweb framework

If you are thinking to make rxweb framework better, that's truly great. You can contribute from a single character to core architectural work or significant documentation – all with the goal of making a robust rxweb framework which helps for everyone in their projects. Even if you are don’t feel up to writing code or documentation yet, there are a variety of other ways that you can contribute like reporting issues to testing patches.

Check out the docs on how you can put your precious efforts on the rxweb framework and contribute in the respective area.

Need Help or Found an Issue

We highly recommend for help please ask your questions on our gitter/rxweb-project to get quick response from us. Otherthan our gitter channel you can ask your question on StackOverflow or create a new issue in our Github Repository.

For, issue please refer our issue workflow wiki for better visibility our issue process.

Feature request

You can request a new feature by submitting an issue to our GitHub Repository. If you would like to implement a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it.

Principal Sponsor

Logo of Radixweb – An IT Outsourcing & Consulting Company

License

The rxweb framework is open-sourced software licensed under the MIT license.

rxwebcore's People

Contributors

ajayojha avatar radixwb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rxwebcore's Issues

Extended Models have incorrect import statements

Hello Sir,

When I run model command, extended models generate imports Name of property in the class instead of type of the property.
Ex.
For property, buyerNavigation : UserBase;

import {BuyerNavigationBase} from '../database-models/buyer-navigation-base';
is being imported instead of
import {UserBase} from '../database-models/user-base';

angulararchitectureissue.txt

Self referencing tables not generating properly

My application has many self referencing tables. Ex. There is a Component Table having a column ParentComponentId which is foreign key column referencing Primary key of same table. Model class of such tables are created with virtual property as below:
#region Component Annotations

    [ForeignKey(nameof(ParentComponentId))]
    [InverseProperty(nameof(PrintLynxx.Models.Main.Component.Components))]
	#endregion Component Annotations

    public virtual Component Component { get; set; }

which throws error "membernames cannot be same as their enclosing type"

Two tables with multiple relations

Attachments
Table
FK1
FK2
ModelClass.txt
specspecitemmappings table

CompositeSpecItems table has relations with specspecitemmappings table. with two key combinations. (See attachments for further details)

Further technical details

  • ASP.NET Core version 3.1.1
  • Include the output of dotnet --info Error: Duplicate RelationshipTableAttribue attribute
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version VS2019

Unable to access api via postman

I tried following the instructions as given on https://rxweb.io/rx-web-core to create a new project. However, when I try to test the authentication post API using postman, it is unable to resolve the url.

The project builds successfully and is in 'Debugging' state.

Below is screenshot of error I get:
rxweb io-postman-error

Connection Resiliency creates issue while transaction

Describe the bug

When I use multiple context after begine transaction, it's throw error when I saving a context state values.

Here is the code :

 var text = await this.DbContextManager.BeginTransactionAsync(this.LoginUow);
            var person = new Person
            {
                PersonName = "John"
            };
            await LoginUow.RegisterNewAsync<Person>(person);
            await LoginUow.CommitAsync();
            this.DbContextManager.CommitAsync();

To Reproduce

Run the above-provided code, throws the error.

Further technical details

  • ASP.NET Core version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version

New Feature: Scope based role rights

New Feature Request: Scope based role rights

My application provides platform for different printing companies to get deals with companies providing printing contracts.
There are three type of users Admin, Buyers(who issue printing contracts), Vendors(who provide printing services).
Scenario 1: Admin user can access his/her own organization directory and also can change contact information for users.
Admin user can access other companies(Buyer or Vendor) but cannot change contact information for users in the companies
Scenario 2: Buyer user can access his/her own "Job Defaults and Preferences" and can edit template group and templates under the group
Admin user can access "Job Defaults and Preferences" of a buyer company but cannot edit template group and templates under the group
Scenario 3: Buyer user can access all the tabs of Jobs within their own company.
Admin user can access only few tabs of Jobs of a buyer company.

Token Not expires

Describe the bug

The token is not expired after stipulated time likewise I have created a JWT toke which lifetime will be 2 min but still it's valid after 2 two min.

To Reproduce

I have changed the expiration time in ApplicationTokeProvider model :

var expirationTime = user.UserId == 0 ? DateTime.UtcNow.AddDays(1) : DateTime.UtcNow.AddMinutes(2);

After that generate the token and use the generated token after 2 min.

Further technical details

  • ASP.NET Core version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version

One table having two FK relation with another table on same PK column

Table relation are not generating properly.
while login throwing erro.
"Unable to determine the relationship represented by navigation property 'AbilityScopeStepTeam.Right1' of type 'Right'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'."
-Attachments-------------------------------------------------------------------------------------------------

AbilityScopeStepTeam.txt
Right.txt
TableScript.txt

Need Support for Entity Framework 5

Slowness issue.

We need to use new features of entity framework like Include Filter, Split queries etc.

Describe the solution you'd like

Upgrade to entity framework 5.

do not have any good way to store extra properties in a separate file that are not associated with database table

Describe the bug

Do not find any way to store extra properties in a separate file that are not associated with database table

To Reproduce

Suppose we have a database table - employee
we will have two classes at angular side - 1) employee.ts and 2) employeebase.ts

We need some more extra properties to use at client side like extraProp1,extraProp2, extraProp3

so now the question is where do we store those extra properties?

we cannot store in above mentioned two classes (employee.ts and employeebase.ts), even if we store, it gets removed when we run rxweb --models -main commmand.

Two columns with Foreign key relation with same table

In our project, for some tables, we need to create two columns LoginUserId and ActingUserId in single table. These two columns has foreign key relation with with User table. While creating model class inverse property relations are not creating.

While using DBContextManager in rxwebcore for using Transaction for relational save Error

Right now I solved problem by using AutoTransactionsEnabled false.
Following code:
Uow.Context.Database.AutoTransactionsEnabled = false;
var result = await DbContextManager.BeginTransactionAsync(this.Uow);
using (result)
{
try
{
await Uow.RegisterNewAsync(entity.Student);
Uow.Context.SaveChanges();
await Uow.RegisterNewAsync(entity);
Uow.Context.SaveChanges();
await result.CommitAsync();
}
catch(Exception e)
{
Console.WriteLine(e.Message);
await result.RollbackAsync();
}
}
Uow.Context.Database.AutoTransactionsEnabled = true;

If it can be included in DbContextManager it will be more good.

Enum generation using entries in Application Objects

In ApplicationObjectTypes we have done an entry as ApplicationObjectTypeId=1, ApplicationObjectTypeName="Status Type" and IsActive=1. Two enums are being created one with space "Status Type" and another without space "StatusType". Note we also have one table which holds data of status type as we want to display status type in multilingual.

DatabaseGenerated annotation is applied non identity column primary keys

Describe the bug

If my table has primary key but identity is not true. when I generate the model through CLI then it applies [DatabaseGenerated(DatabaseGeneratedOption.Identity)] on non-identity primary keys column.

To Reproduce

  1. Create a table with primary key without identity true
  2. Run the command in your package manager console : rxwebcore --add-models main

Further technical details

rxweb package version: [email protected]

Request Trace and Exceptions are not logging

Describe the bug

Whenever any API is called at that time log isn't getting recorded in RequestTraces and AuditRecords table. Also when any exception is generated then it isn't getting logged in ExceptionLogs table.

Exception Handling code:-
image

Record log attribute:-
image

Currently we have to manage exception logs in separate log file. Would be helpful for troubleshooting, if these exceptions and traces are getting logged in LogDB.

Token is getting invalid frequently.

Hello @ajayojha sir.

In Our Application we did code as like while token is invalid user redirects to the Login screen.
So our application is hosted in client server so we noted that in some time user redirects to the login screen frequently it not happens in only one case token authorization is available on most of the api so some frequently token getting expired then user logged out from the system.
i already checked in exception log but it not logged into the exception log. then i checked into the event log so i found that there has more than 40 error for invalid token.

Please let me know for the solution of this issue.

image_2020_05_21T17_08_05_474Z
Screenshot_11

Entity Models with composite primary key

If table has composite primary key then it is throwing error "Entity type has composite primary key defined with data annotations. To set composite primary key, use fluent API."

Connection is not disposed during StoreProc Call

Describe the bug

When calling the multiple StoreProc method of DbContextManager then it throws the exception of Timeout .... AppPool full....

To Reproduce

  • Create an API and write the code which calls the StoreProc.
  • Call that API at least 50 times from Postman or any other tool.
  • The exception will occur.

Further technical details

  • rxwebcore package : [email protected]
  • ASP.NET Core version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version

Need support in AllowRequest attribute with time limit

Is your feature request related to a problem? Please describe.

Restrict user to call API base on day or time

Describe the solution you'd like

we have requirement to restrict user to call API for 1 day when he makes some api calls more then 10 times

Swagger is not working.

swagger is not working in new version (1.1.8) of rxwebcore.
It was running properly in older version, but in newer version i'm not able to call any request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.