profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/josephmancuso/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Joseph Mancuso josephmancuso @MasoniteFramework Long Island, New York http://docs.masoniteproject.com Joseph Mancuso | Software Developer | Creator of the @MasoniteFramework

josephmancuso/django-heroku-production 10

A Django project that's ready to deploy to Heroku within minutes.

josephmancuso/ambient 5

Quick Masonite & Vue Ambient sounds website

Apress/definitive-guide-to-masonite 0

Source Code for 'The Definitive Guide to Masonite' by Christopher Pitt and Joe Mancuso

girardinsamuel/masonite4-template 0

Examples of possible project templates for Masonite 4

josephmancuso/awesome-python 0

A curated list of awesome Python frameworks, libraries, software and resources

josephmancuso/bootstrap-studio-themes 0

Themes to use with Bootstrap Studio

josephmancuso/bootstrap4-tagsinput 0

jQuery tags input plugin based on Twitter Bootstrap 4

josephmancuso/college 0

repo for college project

josephmancuso/core 0

Main pip package location for Masonite

issue closedMasoniteFramework/masonite

Is this an asynchronous web framework?

Is this an asynchronous web framework? I heard that the syntax is async def and await.

closed time in 7 days

goophps

issue commentMasoniteFramework/masonite4

I suggest making it an asynchronous framework, using async def and await.

Currently no plans to make this an asynchronous framework

goophps

comment created time in 7 days

issue commentMasoniteFramework/orm

Allow database configuration/settings path to be specified for CLI commands

Yeah. You understand the problem we're trying to solve here lol. Can you open a PR for this?

alexpdr

comment created time in 8 days

issue commentMasoniteFramework/orm

Migrations not wrapping table/column names

Alter queries should wrap the table. Anyway really there is a table, it should be using self.wrap_table(table_name)

This is specifically for the use case where you name the table keyword or something

circulon

comment created time in 8 days

Pull request review commentMasoniteFramework/orm

postgres use UUID datatype

 def after(self, after):         self.after = after         return self -    def default(self, value):+    def default(self, value, raw=False):

Also can we add a test for this schema? Can do it inside one of the test_postgres_alter_schema.py files

circulon

comment created time in 10 days

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentMasoniteFramework/orm

postgres use UUID datatype

 def after(self, after):         self.after = after         return self -    def default(self, value):+    def default(self, value, raw=False):

So this is used like:

table.string("name").default("something", raw=True)

?

Can we make a new method like:

table.string("name").default_raw("something")

This would just call the default('something', raw=True) under the hood

circulon

comment created time in 10 days

PullRequestReviewEvent

pull request commentMasoniteFramework/orm

Fix other joins cannot use lambda

looks great! great job!

circulon

comment created time in 10 days

push eventMasoniteFramework/orm

Kieren Eaton

commit sha 7a0d40ce7ba26c5409e81544af0d33ab7262e7e5

Fix left & right joins could not use lambda

view details

Kieren Eaton

commit sha 96a45cd15f4f4981d128f85072a1ec41907a83c3

Updated tests

view details

Joseph Mancuso

commit sha c7917d1a3ce9b19514004cdfb328dd0fa762ff21

Merge pull request #502 from circulon/patch/other_joins_use_lambda Fix other joins cannot use lambda

view details

push time in 10 days

PR merged MasoniteFramework/orm

Fix other joins cannot use lambda

This PR enables lambda usage for left and right joins

+129 -3

0 comment

6 changed files

circulon

pr closed time in 10 days

PullRequestReviewEvent

pull request commentMasoniteFramework/orm

fix join on value

Merged

circulon

comment created time in 11 days

push eventMasoniteFramework/orm

Kieren Eaton

commit sha 7b0741b8099ae9216c3e81aa59bb90c05a5bfee4

Fixed multiple null and not null clauses not separated correctly

view details

Kieren Eaton

commit sha c3cbe3704585c8534e6f3fc307cdc2cacc498f1a

Removed where clause The where clause is not a valid part of a join

view details

Kieren Eaton

commit sha 478621cc316c00aa9243c04bed3fd2305676d4fb

Implement on_value and friends Implementoed: on_value() on_null() on_not_null() and the 'OR' alternatives or_on_value() or_on_null() or_on_not_null()

view details

Kieren Eaton

commit sha 66822cc100bed8b344a011e3b4396d43998a9089

Simplified loop structure

view details

Kieren Eaton

commit sha 417e80ab2b8f01bbd0f9f3c5ddf58b85fce84fdf

Fixed iteration over clauses

view details

Kieren Eaton

commit sha 257909fe1da5ce1ea0e1a267f5f7a4c32fd870ac

Updated Tests

view details

Kieren Eaton

commit sha 89194a26a1e21f12e9f76d35255361e800948e86

Fixed Linting

view details

Kieren Eaton

commit sha 87a61ef7eed300f51e3fc95e5c3d35c2bdf863a9

Fixed more linting issues

view details

Kieren Eaton

commit sha 080465a168b4a2c66fb6be5b10c8ae38304577a7

Blacked helpers linting issues

view details

Kieren Eaton

commit sha bb029ab7db18db1ac326c3a56d68a33a764ad078

Removed where from BaseGrammar

view details

Kieren Eaton

commit sha fa9a90c2c32482f30ae34edaa7bd6d0314f09fda

Fixed bindings order issue

view details

Kieren Eaton

commit sha 66b77b2ad5197d79a4f0c7e6b8b36bed749b4c80

Added where clause back as an alias of on_value Added deprecation warning to the where method

view details

Kieren Eaton

commit sha 00a2bece42cfce3aa4bcce13d0008c4fa8bc0be6

Fixed Tests Helpers was defined as a module and a file

view details

Kieren Eaton

commit sha 8d96cdf858b73c49684ca6cafef7a7639ec9a722

Merge branch '1.0' into patch/fix_join_on_value

view details

Kieren Eaton

commit sha ad97d5815cee2af44310082dee1ef58295c16a0b

Refined tests Updated on_value and on_null tests to prove that an 'on' (aka column comparison) is not actually required

view details

Kieren Eaton

commit sha 45aff32dad6ae6414896afa596ea3decf4ef4589

Updated method doctoring

view details

Kieren Eaton

commit sha 68821f59959e37cb7a4c1f82c6922e8fe39c4f67

Merge branch 'patch/fix_join_on_value' of https://github.com/circulon/orm into patch/fix_join_on_value

view details

Joseph Mancuso

commit sha f6fe981d9f0ae7125cc8b618e0eead6567621756

Merge pull request #495 from circulon/patch/fix_join_on_value

view details

push time in 11 days

PR merged MasoniteFramework/orm

fix join on value

This PR properly addresses using arbitrary values with joins.

The where clause has been aliased (with a deprecation message) to on_value as where is not a valid sub-clause of Join and may build invalid syntax under certain circumstances.

This PR also fixes an issue where consecutive NULL/NOT NULL clauses would not be separated correctly

"AND" methods added: on_value() on_is_null() on_is_not_null()

"OR" methods added: or_on_value() or_on_is_null() or_on_is_not_null()

+290 -134

15 comments

16 changed files

circulon

pr closed time in 11 days

PullRequestReviewEvent

issue commentMasoniteFramework/orm

Allow database configuration/settings path to be specified for CLI commands

I couldn't think of a good way to do this but your issue just gave me a good idea .. We could save the default as a string and we could do something like:

DB = locate('config.database.DB')

We could then take that as an input to this class.

That would fix the migrations issue and allow specifying the config path. The issue is that there are a few other places we hard coded this config path.

The reason this works so well for Orator is because in Orator you import the model class from the config file. We wanted to avoid that and allow you to import the model, and other classes, from the library paths.

If we can figure out how to also avoid those then we could do this. I'm open to discuss more.

alexpdr

comment created time in 11 days

pull request commentMasoniteFramework/orm

Fixed right join being built as left join for sqlite

SQLite doesn't have right joins.

circulon

comment created time in 14 days

PullRequestReviewEvent

Pull request review commentMasoniteFramework/orm

postgres use UUID datatype

 class PostgresPlatform(Platform):         "current": " DEFAULT CURRENT_TIMESTAMP",         "now": " DEFAULT NOW()",         "null": " DEFAULT NULL",+        "auto_uuid": " DEFAULT uuid_generate_v4()"

The default values in the dictionary keys are added via the blueprint class. Then the defaults are fetched via that dictionary by the key which adds the dictionary value to the create/alter query

circulon

comment created time in 14 days

PullRequestReviewEvent

Pull request review commentMasoniteFramework/orm

postgres use UUID datatype

 class PostgresPlatform(Platform):         "current": " DEFAULT CURRENT_TIMESTAMP",         "now": " DEFAULT NOW()",         "null": " DEFAULT NULL",+        "auto_uuid": " DEFAULT uuid_generate_v4()"

Although it might be handled gracefully already but either way it needs a test to make sure adding a column default of uuid doesn't break anything

circulon

comment created time in 15 days

Pull request review commentMasoniteFramework/orm

postgres use UUID datatype

 class PostgresPlatform(Platform):         "current": " DEFAULT CURRENT_TIMESTAMP",         "now": " DEFAULT NOW()",         "null": " DEFAULT NULL",+        "auto_uuid": " DEFAULT uuid_generate_v4()"

This needs a test. This is also done through the mixin.

If we are adding this as a valid default we'll need to do the same thing for the other schema classes (mysql, mssql, sqlite)

circulon

comment created time in 15 days

PullRequestReviewEvent
PullRequestReviewEvent

issue commentMasoniteFramework/masonite

How to use multiple languages?

One day yeah. No development plans for it currently

goophps

comment created time in 17 days

issue commentMasoniteFramework/orm

How to create with model relationship?

@Mozzarella-dev sorry I think I misunderstood your original issue. Does your Post model have user_id in the __fillable__ attribute?

Mozzarella-dev

comment created time in 22 days