primordic/IssueDupesLite huggingface dataset:
Repository: primefaces/primevue

Issue #6739: DatePicker: manual input not working
Created: 2024-11-07T08:54:15Z
Describe the bug
The DatePicker default behaviour is manualnput true, which, if I'm understanding correctly, is supposed to allow typing the date with the keyboard. That is not working. Directly in the examples exposed in the documentation happens.
Reproducer
https://stackblitz.com/edit/u9znrf-r6br5k?file=src%2FApp.vue
PrimeVue version
4.2.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Try to introduce a date in the datepicker with the manualInput set to true (or not specified, as the default is true)
Expected behavior
Allow user to introduce the dates manually

Duplicate issue #6821: DatePicker can't input 
Created: 2024-11-21T07:37:03Z
Describe the bug
Dear,
I can't input any characters into the DatePicker input. This problem has occurred in versions 4.1.1 and 4.2.2, and it still happens when I check PrimeVue DatePicker.
Reproducer
https://primevue.org/datepicker/
PrimeVue version
4.1.1
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Chrome
Steps to reproduce the behavior
Step:

Input '1'
Input '2' => Error.

Expected behavior
Step:

Input '1'
Input '2' => Can input letter '2'

Closing comment (2024-11-21T13:04:55Z): Duplicate #6739
Repository: primefaces/primevue

Issue #674: Calendar sets date in v-model a day ago part two
Created: 2020-11-25T14:06:28Z
Hello, in the first issue (#628) I did not know some things about this issue. So I found that the issue is caused by how the time is calculated. If showtime is false, the js calculate from the hour 00:00 of date selected and finally set hour 22:00 a day ago and the date in v-model became currentdate - 1. So can you change the how date is calculated when time is not showed. The settings I have in calendar are:
 <Calendar v-model="data1" dateFormat="dd.mm.yy" :manualInput="true" :showIcon="false" :touchUI="true" />
I hope you manage to solve this soon. Thank you!

Duplicate issue #628: Calendar wrong date in v-model
Created: 2020-11-05T08:14:09Z
Hello, I noticed that when selecting the date in the calendar, the value in the v-model is wrong. For example when selecting the date 27.10.2020 the value in the v-model is 2020-10-26T22:00:00.000Z.
Can I make any settings to have the correct date? or it is a problem with calculating the time in the Calendar component?
Thank you!

Closing comment (2020-12-11T08:19:04Z): It the same issue reported in #674. I think that is very problematic because the date passed the to parent model will be transformed to UTC automatically when the value is cast or serialized. The locale and timezone depends of the web browser configuration or the OS configuration passed to the web browser. It means that there is not an accurate way of identify the user time zone.
A dirty workaround it could be to identify the user timezone (new Date().getTimezoneOffset();) and convert the passed date to the timezone used by the back-end.
Repository: primefaces/primevue

Issue #3318: Calendar: Time range
Created: 2022-11-21T14:01:55Z
Describe the feature you would like to see added
Is there currently an option using numberOfMonths to have one time picker assigned to one calendar column? If not if there are any plans to support this kind of behavior?
It could be especially useful when using range selector
Is your feature request related to a problem?
No response
Describe the solution you'd like
No response
Describe alternatives you have considered
No response
Additional context
No response

Duplicate issue #3926: Calendar: When selection mode is range allow user to set both start time and end time for the date range
Created: 2023-05-05T09:51:34Z
Describe the feature you would like to see added
Currently when implementing the Calendar component, and setting the selection-mode to range and having show-time enabled, the user is only able to set one time option for the dates selected.
Is your feature request related to a problem?
Without this feature users would not be able to specify a start time and end time for the dates they've selected. In some cases a user might want to select a single date, but be able to say that they need data returning between two particular times on that date.
Describe the solution you'd like
Something like this should do:

Describe alternatives you have considered
Vue Datepicker allows users to do this. It would be a shame if we would be forced to implement a 3rd party date picker instead of using the PrimeVue Calendar.
Additional context
No response

Closing comment (2023-05-15T07:50:20Z): Duplicate #3318
Repository: primefaces/primevue

Issue #5899: Primevue 4 theme flashing on hard reload (Nuxt 3.11)
Created: 2024-06-15T11:53:37Z
Describe the bug


Reproducer
//
PrimeVue version
4 rc1
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
I expect the theme to be there immediately, just like with PrimeVue 3– is this even possible under the new Theming engine?

Duplicate issue #7619: Styles are applied with a delay in a Nuxt 3 application
Created: 2025-04-17T12:35:19Z
Styles declared with Scoped Tokens (dt prop) are not included in the server-side rendering output. This causes a flash of unstyled content (FOUC) or visual flickering when the page is initially loaded, as styles are only applied after the client-side hydration.

  
    
    

    2025-04-17.15.29.37.mov
    
  

  

  


https://stackblitz.com/edit/nuxt-starter-9dec6p1t?file=app.vue
Dependencies

nuxt: 3.16.2
primevue: 4.3.3
@primevue/nuxt-module: 4.3.3

Closing comment (2025-04-18T16:37:44Z): Possible duplicate of -> #5899 or #3070
Repository: primefaces/primevue

Issue #6436: DataTable: column resize does not work anymore
Created: 2024-09-19T08:24:14Z
Describe the bug
Resizing a column with mouse does not work anymore since upgrading to the latest version 4.0.7.
Reproducer link is just a non-modified fork of the column resize demo from the docs.
AFAICT the attribute selector for the table in the created stylesheet is wrong.
Reproducer
https://stackblitz.com/edit/ryzkcf?file=src%2FApp.vue
PrimeVue version
4.0.7
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Try to resize column with mouse, resize element is shown in wanted position, but on resize end the columns stay the same.
Expected behavior
Resize changes column size.

Duplicate issue #6512: DataTable: Cannot resize columns
Created: 2024-10-02T10:06:04Z
Describe the bug
The "fit" mode for column resizing in the datatable is not working. Resizing works in the documentation, but it doesn't work in the Stackblitz example provided.
Reproducer
https://stackblitz.com/edit/xfp6yw?file=src%2FApp.vue
PrimeVue version
4.0.7
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome v129.0.6668.71
Steps to reproduce the behavior
No response
Expected behavior
No response

Closing comment (2024-10-04T10:33:56Z): Duplicate #6436
Repository: primefaces/primevue

Issue #7341: DataTable: Reorder feature is broken
Created: 2025-02-27T09:56:33Z
Describe the bug
DataTable Reorder feature on the official website is broken
https://primevue.org/datatable/#reorder
Pull Request Link
No response
Reason for not contributing a PR

 Lack of time
 Unsure how to implement the fix/feature
 Difficulty understanding the codebase
 Other

Other Reason
No response
Reproducer
https://stackblitz.com/edit/qp6p6ewi?file=src%2FApp.vue
Environment
Chrome on macos
Vue version
3.5.13
PrimeVue version
4.3.1
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Just visit official site
Expected behavior
Just works

Duplicate issue #7343: Datatable reorder is not working @rowReorder
Created: 2025-02-27T15:36:48Z
Describe the bug
@rowReorder is not working, On Primevue Website also the example is not working.
https://primevue.org/datatable/#reorder
Pull Request Link
No response
Reason for not contributing a PR

 Lack of time
 Unsure how to implement the fix/feature
 Difficulty understanding the codebase
 Other

Other Reason
No response
Reproducer
https://primevue.org/datatable/#reorder
Environment
Local Environment
Vue version
3.5
PrimeVue version
4.x
Node version
18.x
Browser(s)
No response
Steps to reproduce the behavior

Simple, In the datatable, the reorder of rows is not working even though we follow the same
You can cross check on PrimeVue website - https://primevue.org/datatable/#reorder

Expected behavior
row should be drag and drop

Closing comment (2025-02-28T00:52:39Z): Duplicate of: #7341
Repository: prism-break/prism-break

Issue #276: Add Kontalk as alternative to WhatsApp
Created: 2013-07-11T13:27:02Z
http://kontalk.org/
based on XMPP, supports own servers, encryption and is open source

Duplicate issue #1408: I miss Kontalk as a secure mobilemessenger
Created: 2015-09-26T06:06:48Z
Hi,
I hope I don't write a duplicate...
I miss on Prism break https://github.com/kontalk
They using XMPP and PGP. And the source code for client and server is open of course.
Thank you

Closing comment (2015-09-26T06:13:46Z): It is a duplicate #276. I actually like kontalk as well, and I've been meaning to make a PR to add it recently (because the problems initially discussed in #276 have been more or less solved) but just haven't got around to it. I'm not sure but perhaps others here want to wait on kontalk/androidclient#179, depending on how important they feel that feature is?
Repository: prism-break/prism-break

Issue #1183: EFF Secure Messaging Scorecard
Created: 2014-11-05T15:09:34Z
https://www.eff.org/secure-messaging-scorecard
Based on these scores, I think we should do the following:

Note Jitsi, Adium, Pidgin with OTR have  not been audited
Discuss possible additions of Subrosa, SureSpot, and Silent Phone/Text

Duplicate issue #1247: EFF secure messaging scorecard
Created: 2015-03-14T22:02:05Z
I just saw this.  Found it very useful.
Do you concur with their assessments?
https://www.eff.org/secure-messaging-scorecard

Closing comment (2015-03-14T22:44:48Z): Closing as duplicate of #1183.
Repository: prism-break/prism-break

Issue #1582: Maybe add Wire?
Created: 2016-10-31T15:42:26Z
Could Wire be somewhere on the list?
It's much better than Telegram because everything is end-to-end encrypted whereas with Telegram, it's only secret chat. Have a look at the comparison table on this page:
https://wire.com/privacy/
Therefore much of the code is on github, but I don't know about the server part. The registration goes through there server and there is no federation.
I hope it's still a good way to avoid mass surveillance.

Duplicate issue #1750: Add crypto-messenger Wire
Created: 2017-07-11T17:52:20Z
It would be great if you could add Wire to your list of recommended software.
https://wire.com/
Wire is a video-, audio- and text-chat software with e2ee that runs on all platforms (Linux, Android, iOz, Windoze and Mac. Unfortunately, nobody loves Sailfish OS...).
The client is open source (server components will follow soon and self-hosting is encouraged) and the code was audited by two companies that couldn't find fatal problems.
Wire has its HQ in Switzerland and it's funded by Skype co-founder Janus Friis. In the future, Wire would like to generate income by selling premium services (especially to businesses).

Closing comment (2017-07-11T18:00:09Z): Duplicate of #1582
Repository: prism-break/prism-break

Issue #2011: Open new issues and pull requests on GitLab: https://gitlab.com/prism-break/prism-break
Created: 2018-06-03T23:38:09Z
Update: We've moved to GitLab, see https://gitlab.com/prism-break/prism-break.
If you don't want to sign up for a GitLab account, you can send an email to incoming+prism-break/prism-break@incoming.gitlab.com. Emails end up on the issue tracker, you will receive replies and will be able to follow up. By default, visibility is restricted to members only. Unless it's spam or sensitive (see below), it will be made public.
If you can't sign up (common if you are using Tor), please drop a line at aforementioned email address, stating that you want a GitLab account and username that you want to claim. We'll sign up for you and send back account credentials with a temporary password. Support requests, and code of conduct violation reports are not made public.

https://thenextweb.com/dd/2018/06/03/bloomberg-reports-microsoft-has-acquired-github/
In light of this, I would like us to seriously consider self-hosting a Gogs or GitLab instance. We're not eating our own dog food and setting a rather bad example in regards to self-hosting by using GitHub for issues and pull requests.
If it is agreed upon that this is the way to go, I can help to move all of the issues to the new platform, keeping interlinking intact.
This is a duplicate of #767.
cc @nylira @strugee

Duplicate issue #2015: Thoughts & Actions on Microsoft's Github aquisition
Created: 2018-06-04T18:30:21Z
Not sure if you consider this a petty issue, but to many other people and me it seems like this is the ultimate shit storm that will hit all open source code in the very near future.  Do we really want that to happen?
Since prism-break is a small and precise hub of most privacy related open-source software, i advise we get the attention of at least those software developers to move away from Github and onto an open source alternative that will not be controlled by a giant that already controls half the internet.
If we stand together, we can continue our journey of freedom and open source/self-hosted software elsewhere such as Gitlab.
here is something i stumbled upon on what microsoft is capable of doing just like its done in the past.
https://jacquesmattheij.com/what-is-wrong-with-microsoft-buying-github
I respect prism-break for putting together a nice safe list, but it would be for nothing if you do not at least make this apparent to those developers and caution them.

Closing comment (2018-06-04T21:29:44Z): Closing as a duplicate of #2011.
Repository: prism-break/prism-break

Issue #1267: Add SMSSecure
Created: 2015-04-03T18:40:38Z
Are there any arguments, not to recommend SMSSecure? Otherwise I'll create a pull request.
SMSSecure is a forge of TextSecure, without Google API as dependency (this is why we not recommend TextSecure; see #1140 and #552). But without Google API there is not problem, isn't it?

Duplicate issue #1333: Add SMSSecure to Secure Instant Messengers
Created: 2015-06-08T08:10:24Z
A new fork of TextSecure that supports encrypted SMS/MMS
This is a fork of textsecure. The forks goals is to drop all Google service dependencies and drop all support for sending messages over the internet, it is only SMS and MMS. It can be found on Google play, and F-Droid. I am in no way associated with this project, I just thought that some of us would like to find a fork of Textsecure that is actively being updated and supports the old method of encrypting messages, and as always it is open source ;)
Source: http://www.reddit.com/r/privacy/comments/34jrk5/a_new_fork_of_textsecure_that_supports_encrypted/
I use it for encrypted SMS on paranoidandroid without gapps, since several month, and it does the job.
SMSSecure website and repo:
http://smssecure.org/
https://github.com/SMSSecure/SMSSecure
#1314 to read more about why not to use textsecure anymore.

Closing comment (2015-06-08T08:17:18Z): I agree with you. But this is a dup of #1267.
Repository: prism-break/prism-break

Issue #1582: Maybe add Wire?
Created: 2016-10-31T15:42:26Z
Could Wire be somewhere on the list?
It's much better than Telegram because everything is end-to-end encrypted whereas with Telegram, it's only secret chat. Have a look at the comparison table on this page:
https://wire.com/privacy/
Therefore much of the code is on github, but I don't know about the server part. The registration goes through there server and there is no federation.
I hope it's still a good way to avoid mass surveillance.

Duplicate issue #1565: "Wire" messenger app
Created: 2016-09-09T22:21:10Z
Hello, what is with the "Wire" messenger app for android, here is the homepage (https://wire.com/), here are adresses from wikipedia (https://en.wikipedia.org/wiki/Comparison_of_instant_messaging_clients , https://de.wikipedia.org/wiki/Liste_von_mobilen_Instant-Messengern). In wikipedia looks "Wire" like Conversations, and that is listed in prism-break.org.
Thanks!

Closing comment (2018-03-17T00:24:58Z): Duplicate of #1582 and #1750.
Repository: prism-break/prism-break

Issue #828: I just discovered this service: http://twister.net.co/
Created: 2014-01-13T23:03:26Z
It seems a perfect candidate for social network list!!
I read about it here http://www.wired.com/wiredenterprise/2014/01/twister/ but I doesn't know more about it, if anybody has his personal views/further explanation about it I will read it with joy!

Duplicate issue #1167: Add Twister to social media
Created: 2014-10-12T12:54:54Z
Twister is an experimental microblogging peer-to-peer platform, implemented as a distributed file sharing system. Being completely decentralized means that no one is able to shut it down, as there is no single point to attack. The system uses end-to-end encryption to safeguard communications. It is based on both BitTorrent and Bitcoin-like protocols and is considered a (distributed) Twitter clone.
http://twister.net.co/
https://en.wikipedia.org/wiki/Twister_%28software%29

Closing comment (2018-03-08T01:54:09Z): Duplicate: #828
Repository: prism-break/prism-break

Issue #727: Anti virus section
Created: 2013-11-09T10:06:39Z
Any thoughts about a anti virus section?
Most anti virus software are commercial. So some of them could deliver not only definition updates for anti virus, but also deliver backdoor "viruses" for NSA and co.
ClamAV (for an example) is a libre anti virus software.

Duplicate issue #1622: Could you recommend a secure antivirus program
Created: 2016-11-30T22:06:25Z
Which antivirus programs are safe?

Closing comment (2016-12-01T11:07:33Z): Closing this as a duplicate of #727. The first comment there will actually point you at an open-source AV alternative.
Repository: prism-break/prism-break

Issue #937: New open source alternative to BitTorrent Sync called Syncthing
Created: 2014-04-06T15:25:30Z
http://syncthing.net/ website
https://github.com/calmh/syncthing Github
" Syncthing replaces Dropbox and BitTorrent Sync with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
Using syncthing, that control is returned to you."
This is a full blown open source alternative to BitTorrent Sync

Duplicate issue #1004: [WIN][LIN] Dropbox and BT sync alternative - syncthing
Created: 2014-06-04T00:35:00Z
https://github.com/calmh/syncthing

Syncthing replaces Dropbox and BitTorrent Sync with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
Using syncthing, that control is returned to you.

Should be added to Windows and Linux sections. It is possible to use it on other platfroms too.

Closing comment (2014-06-04T02:00:49Z): Duplicate of #937; please close
Repository: prism-break/prism-break

Issue #1342: LibreOffice
Created: 2015-06-14T15:39:03Z
Why isn't LibreOffice office suite recommended in the 'productivity' category? Are online solutions preferred?
https://www.libreoffice.org/

Duplicate issue #1416: LibreOffice and Calligra Suite
Created: 2015-09-30T18:48:06Z
Why isn't LibreOffice or Calligra Suite on the Productivity section?

Closing comment (2015-10-01T05:27:48Z): This can be closed as a duplicate of #1342. It was also mentioned specifically in #834, #1384, #725, and #76.
Repository: prisma/prisma-client-js

Issue #279: Invalid `ctx.photon.posts.create()` invocation 
Created: 2019-10-29T17:40:17Z
HI im using the prisma auth example and i getting this error :
Invalid `ctx.photon.posts.create()` invocation in 
  → 355 return await ctx.photon.posts.create({
      data: {        title: 'jlk'
                       content:"asda",
                realPart: {
                     set: [
                         3,
                        5.5,
                         5.5
                      ]
                ~~~~~~
                },

                        
}
on photon.createOnePost. Provided List<Float | Int>, expected List<Float>.
Argument set: Got invalid value
[
  3,
  5.5,
  5.5
]

My Models:
generator photon {
  provider = "photonjs"
}

model Post {
  id        String   @default(cuid()) @id
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  published Boolean @default(true)
  title     String?
  content   String?
  realPart: Float[]  
}

model User {
  id       String  @default(cuid()) @id
  email    String  @unique
  password String
  name     String?
  posts    Post[]
}
Please Help me :D

Duplicate issue #422: Photon crashes when `set` for scalarList is not provided or it is set to `[]`
Created: 2020-01-14T01:31:32Z
Hello im having this issue, i use prisma2@alpha and this is the repo https://github.com/GolfredoPerezFernandez/PrismaServer .
Error:Oops, an unknown error occured! This is on us, you did nothing wrong.
It occured in the `return await ctx.photon.posts.create()` invocation in C:\Users\owner\Documents\modern-apps\lightmatter\new\src\types\Mutation.ts:353:43

  349
  350 console.log(evarepsilon1Y.length)
  351
  352 console.log(malla.length)
→ 353   return await ctx.photon.posts.create({

Reason: called `Option::unwrap()` on a `None` value in src\libcore\option.rs:378:21

Please create an issue in the photonjs repo with
your `schema.prisma` and the Photon method you tried to use �:
https://github.com/prisma/photonjs/issues/new

    at PhotonFetcher.<anonymous> (C:\Users\owner\Documents\modern-apps\lightmatter\new\node_modules\@prisma\photon\index.js:65:27)
    at Generator.throw (<anonymous>)
    at rejected (C:\Users\owner\Documents\modern-apps\lightmatter\new\node_modules\@prisma\photon\index.js:6:65)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Closing comment (2020-01-17T13:27:16Z): Hi,
I can confirm this and this is related to #279 which was also opened by you. It was actually not fixed and I have reopened it. Please follow that issue now. It is not related to that, read the comment below.
Repository: prisma/prisma-client-js

Issue #447: File name (`datamodel.mdl`) and client name (`Photon JS`) in graphic in README need to be updated
Created: 2020-01-26T18:06:15Z

Duplicate issue #464: Update graphics to use schema.prisma instead of datamodel.mdl
Created: 2020-02-04T14:53:47Z
What
Currently the graphics use datamodel.mdl, e.g.

They should be updated to schema.prisma

Closing comment (2020-02-04T17:58:24Z): Duplicate of #447
Repository: prisma/prisma-client-js

Issue #89: Add `findOrNull` method
Created: 2019-07-01T04:15:54Z
Using the demo project 'graphql-apollo-server' typescript project, I query on post and use a dummy id argument and expect to get a null post obj back, but instead I get an internal server error.
t.field('post', {
      type: 'Post',
      nullable: true,
      args: { id: idArg() },
      resolve: (parent, { id }, ctx) => {
        return ctx.photon.posts.findOne({
          where: {
            id,
          },
        })
      },
    })

Query:

{
 post(id: "123") {
   id
   author {
     id
   }
 }
}

Result: Error in Photon: \n[\n  {\n \"error\": \"ConnectorError(RecordDoesNotExist)\"\n  }\n]"

Is there a way to tell photon to just send back null or is this a bug?

Duplicate issue #98: findOne returns Error when no record was found.
Created: 2019-07-04T06:36:05Z
Yesterday I noticed the following bug:
let user = await context.photon.users.findOne({ where: { email: args.email } });
When the findOne function cannot find a record, it doesn't return null, which I believe would be the expected behaviour but instead it returns an error:

Closing comment (2019-07-04T14:50:52Z): Thanks for reporting this @reinvanimschoot. We'll fix this soon.
This is a duplicate of #89
Repository: prisma/prisma-client-js

Issue #702: Ability to sort results by multiple attributes
Created: 2020-05-25T13:40:45Z
Problem
Most databases today support sorting query results by multiple fields, but Prisma Client only supports sorting results by a single field:
Suggested solution
Ability to provide a sorted set of fields to sort the results by and if the sorting by each field should be ascending or descending. The set of fields should be sorted since (most?) databases will do the sorting sequentially.
PostgreSQL:

When more than one expression is specified, the later values are used to sort rows that are equal according to the earlier values. Each expression can be followed by an optional ASC or DESC keyword to set the sort direction to ascending or descending. ASC order is the default. Ascending order puts smaller values first, where "smaller" is defined in terms of the < operator. Similarly, descending order is determined with the > operator. [1]

const posts = await prisma.post.findMany({
  where: {
    author: { email: 'bob@prisma.io' },
  },
 orderBy: [
   {title: asc},
   {createdAt: desc}
 ]
})
Alternatives
Not considered.
Additional context

sort with orderBy lists #337
Support case sensitivity when querying and sorting #690
Database collation affects result of orderBy (case sensitive) #2369

Duplicate issue #736: Support orderBy multiple fields
Created: 2020-06-08T09:55:43Z
Problem
Right now orderBy is allowed only on a single field. Because of this I need to fetch more than I need and some extra work on my side.
My use-case:

My models is a Release describing a software release containing a (semver) version number.
The version is stored in major, minor, patch in separate fields.
Job to be done: Find the latest release version.

Suggested solution
Allow to oderBy multiple values.
prisma.Release.findMany({
  orderBy: [{ major: 'desc' }, { minor: 'desc' }, { patch: 'desc' }]
})

While order for the orderBy matters.
Alternatives
🤷🏽‍♂️ I'm doing most of the work on client side now.

Closing comment (2020-06-20T04:54:58Z): Oh yeah @Gomah, thanks for pointing out the duplicate.
I am going to close this as a duplicate of #702
Repository: prisma/prisma-client-js

Issue #188: Results should always include foreign key columns
Created: 2019-08-13T00:48:21Z
I would like to propose that when returning records from a table, any foreign key columns are automatically included. For example:
model User {
  id    Int   @id @unique
  name  String
  posts Post[]
}

model Post {
  id   Int @id @unique
  text String
  user User
}

Returning all posts with photon.posts.findMany() today results in:
[
  {
    "id": 1,
    "text": "Hello, world"
  },
  { 
    "id": 2,
    "text": "Foobar"
  }
]
I'm proposing that it return the following instead:
[
  {
    "id": 1,
    "text": "Hello, world",
    "user": 10
  },
  { 
    "id": 2,
    "text": "Foobar",
    "user": 11
  }
]
I can still return the full associated User object, if desired, with the include: option.
My reasoning is that when I say "I want a post" or "I want all posts" then that means I want all of the data for those posts. If I only want a subset of columns then I'll use the select: option and list the specific fields that I want.
In the app I'm currently working in I'll pull a collection of data when the app launches and additional data later if the user navigates to a certain page. When they do, the additional data I need is looked up by a foreign key and then associated and displayed. I find myself constantly having to use an :include => :select in order to get that foreign key returned in my first batch of data. One of my queries looks like:
photon.users.findMany({
  include: {
    note: { select: { id: true } },
    responses: {
      include: {
        form: { select: { id: true } },
        answers: {
          include: {
            question: { select: { id: true } }
          }
        }
      }
    }
  }
})
If the foreign keys were included by default this would become:
photon.users.findMany({
  include: {
    note: true,
    responses: { include: { answers: true } }
  }
})

Duplicate issue #333: Allow access to raw value used as Foreign Key in a relation
Created: 2019-09-26T11:14:08Z
The following is valid to Photon, but not to Lift:
model Foo {
  bar       Bar         @map("bar_uuid")
  barId     String      @map("bar_uuid")
}

If would be fantastic if either the above was allowed, or if barId could be autogenerated on the type Foo.
Making barId accessible significantly cleans the syntax for callers (and I think without barId the query engine may even implement joins or something similar under the covers).
For context because we are struggling with some Photon performance issues, we're using some manual workarounds. This backs out to us having many cases like barId in our schema but commenting and uncommenting the barId line depending on whether we're using Photon, or Lift.

Closing comment (2020-03-17T09:27:07Z): Closing this as a duplicate of #188. We're planning to look into this. Thanks a lot for bringing up this issue!
Repository: prisma/prisma-client-js

Issue #669: Ability to add hooks for CRUD query builder
Created: 2020-04-27T07:04:12Z
Problem
currently it's not possible to add hooks to alter queries (e.g. add where conditions). this feature is need for example to implement authorization in model level.
Solution
adding hooks for CRUD functions to add conditions would allow implementing privacy in model level.
Additional context
ent has privacy which allows to define permissions in data models. prisma should allow something similar.

Duplicate issue #709: Allow Callbacks for Upsert
Created: 2020-06-01T01:23:18Z
Problem
Currently when you upsert, you provide a create block and an update block. I would like to log some statistics of when something is updates vs when something is created.
Suggested solution
It would be nice to have some additional hooks available, such as onCreate and onUpdate in the upsert statement which run if something is updated or created.
Alternatives
N/A
Additional context
N/A

Closing comment (2020-06-05T00:46:15Z): Related to #669, might be a duplicate as well but I am not sure. Will that issue address your problem?
Repository: prisma/prisma-client-js

Issue #297: Updating of non-existing record
Created: 2019-11-17T14:25:28Z
When I try to update a non-existing record Photon returns an error described below:
Error: 
Oops, an unknown error occured! This is on us, you did nothing wrong.
It occured in the `photon.()` invocation in /home/vadim/Projects/Temp/index.js:25:40



Reason: called `Option::unwrap()` on a `None` value in src/libcore/option.rs:378:21

Please create an issue in the photonjs repo with
your `schema.prisma` and the Photon method you tried to use 🙏:
https://github.com/prisma/photonjs/issues/new

    at PhotonFetcher.<anonymous> (/home/vadim/Projects/Temp/node_modules/@generated/photon/index.js:54:27)
    at Generator.throw (<anonymous>)
    at rejected (/home/vadim/Projects/Temp/node_modules/@generated/photon/index.js:6:65)
    at process._tickCallback (internal/process/next_tick.js:68:7)

OS: Ubuntu 18.04.3 LTS
Node.js version: 12.7.0
Prisma version: 2.0.0-preview016.2

Duplicate issue #294: Self nested collection adding error
Created: 2019-11-12T15:40:35Z
What I tried to do
Hello !
I use prisma2 to develop a comment feature.
Comments should be commented.
The comment model is self calling
Error
I get the following error
Oops, an unknown error occured! This is on us, you did nothing wrong.
Reason: called `Option::unwrap()` on a `None` value in src\libcore\option.rs:378:21
Please create an issue in the photonjs repo with

That's why I'm here.
Prisma Schema
Actual schema looks like
generator photon {
  provider = "photonjs"
}

datasource db {
  provider = "postgresql"
  url = [...]
}

[...]

model Comment {
  id         String     @default(cuid()) @id
  createdAt  DateTime   @default(now())
  updatedAt  DateTime   @updatedAt
  value      String
  author     User
  childs     Comment[]  @relation("comment_childs", onDelete: CASCADE)
  likes      Like[]
}

[...]

Resolver
return this.photonService.comments.update({
    where: {id: parentId},
    data: {
        childs: {
            create: {
                value,
                author: {connect: {id: user.id}}
            }
        }
    },
});
Main dependencies
{
  "prisma2": "^2.0.0-preview016.2"
}
Questions
Is it really a photon error or it comes from my resolver ?
(I'm not sure at all about the child: {create: { [...] } } to add comment to collection)
Error could comes from the @relation decorator ?
Thanks a lot.

Closing comment (2019-11-22T15:49:46Z): Possible duplicate of: #297
Repository: processing/processing

Issue #1402: Video Capture in OSX with Processing 2.0 not working
Created: 2013-02-10T17:37:21Z
Original author: feder...@ludic.cc (November 01, 2012 10:36:49)
I'm having a problem with Processing 2.0 beta (3 to 5). I'm trying to use the Capture object from processing.video.* and it doesn't work IF I have P2D, P3D or OPENGL in the size. I also found that GSCapture also doesn't work in Processing 2.0b with this parameter. If the size() doesn't have the P2D, P3D, OPENGL the it does works.
To avoid conflicts I tried the "GettingStartedCapture" sketch from the examples. It just hangs on the startup.
Is an OSX 10.8.2.
I did an "Export Application" for the example and ran it over a terminal to see the results.
If I try the 32bit version I get an:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Unable to load library 'gstreamer-0.10': dlopen(/Applications/Processing.app/Contents/Resources/Java/modes/java/libraries/video/examples/Capture/GettingStartedCapture/application.macosx32/GettingStartedCapture.app/Contents/Resources/Java/libgstreamer-0.10.dylib, 9): no suitable image found.  Did find:
/Applications/Processing.app/Contents/Resources/Java/modes/java/libraries/video/examples/Capture/GettingStartedCapture/application.macosx32/GettingStartedCapture.app/Contents/Resources/Java/libgstreamer-0.10.dylib: mach-o, but wrong architecture
And if trying the 64bit version I don't get anything. It just hangs.
Original issue: http://code.google.com/p/processing/issues/detail?id=1364

Duplicate issue #1441: _121119_a.pde is not a valid name for a sketch
Created: 2013-02-10T17:39:38Z
Original author: jukkabo...@gmail.com (November 20, 2012 08:08:50)
Sketches named '[numbers][letters]' saved with 2.0a4
can´t be opened with  2.0b6  under OSX 10.6.8 ;-(
e.g. '_121119_a.pde'
best regards, jB
Original issue: http://code.google.com/p/processing/issues/detail?id=1403

Closing comment (2013-02-10T17:39:39Z): This issue is a duplicate of #1402
Repository: processing/processing

Issue #1164: The XML parser appears to be broken
Created: 2013-02-10T17:21:37Z
Original author: gustav.b...@gmail.com (July 03, 2012 11:33:23)
What steps will reproduce the problem?
-Running the XML example (modified for the 2.0 changes) from the references will reproduce the problem.
I'm getting a nullpointerexception at line int id = kid.getInt("id");
However this is due to the fact that processing seems to think that the xml-file has 5 children when it only got 2. So the null pointer comes from the first of those other 3 nonexisting children.
What version of the product are you using? On what operating system?
-Processing 2.0a6 on Windows 7 x64.
Please provide any additional information below.
The problem appears to be that newline characters at the end of tags are parsed as tags. For each new tag that is added in the xml file the childcount increases by two, also removing all newlines from the file solves the problem (for me) and displays the correct childcount. However this makes the file fairly unreadable.
I've also found that simply adding extra newline characters doesn't increase the childcount so it would appear that it's only the first newline char after a tag that's causing a problem.
The attached file should give the following output:
"Number of children: 5 <-- This should be 2, note that there are 3 \n characters.
And now the same file but without the \n at the end of the first child
Number of children: 4 <-- This should be 2, note that there are 2 \n characters.
However, adding extra newline characters (in test.xml) does not increase the child count so i'm guessing the parser is interpereting the first newline char after an xmltag as another xmltag
Or something like that"
Original issue: http://code.google.com/p/processing/issues/detail?id=1126

Duplicate issue #1221: Search-path for reference
Created: 2013-02-10T17:25:20Z
Original author: ingeniu...@freenet.de (August 15, 2012 07:49:25)
If possible, please attach the smallest possible sketch that reproduces
your problem. First make a tiny example, then use Tools -> Archive Sketch
to create a zip file, and then attach it to this bug report.
What steps will reproduce the problem?

Since processing 2.0a8 64bit the program-folder is not "program files (x86)", but (Germany only) "Programme" (it is windows default). With "Tools | Reference" or "Tools | Find in Reference" the default search-path is "c:\program files...." and so in an german computer enviroment there will be an error message "Could not open the url ..." Is it possible for processing to have a look on the enviroment-variables and then change to the german-folder?
2.
3.

What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Note: Please do not link to locations on other sites, such as your own
image site, video site, blog, etc. Include the relevant information here
with the report.
Original issue: http://code.google.com/p/processing/issues/detail?id=1183

Closing comment (2013-02-10T17:25:27Z): This issue is a duplicate of #1164
Repository: processing/processing

Issue #3830: Short-cuts used for stepping in debug also insert newlines into source
Created: 2015-09-19T20:08:58Z
The short-cuts for stepping involve ctrl-J.  That's a newline (or maybe a carriage return) and gets typed into the editor.  Is editing supposed to be possible at all during debugging?

Duplicate issue #4184: Keyboard Shortcut for debugging 'step' and 'step into' inserts a blank line into the code
Created: 2015-12-04T02:09:07Z
When the keyboard shortcut for 'step' or 'step into' is used, it inserts a blank line (i.e. an '/n') wherever the (typing) cursor is located when the keypress occurred.
Reproducible example:
void setup(){
    size(400,600);
}

void draw(){
    background(0);
    function();
}

void function(){
    fill(0,0,255);
    ellipse(width/2, height/2, 40,40);
}
Now add a breakpoint to line 7, where function() is called.
Now run, and once the debugger has paused execution, "step-into" with Ctrl+Shift+J.
Below are screenshots of before and after. Ctrl+Shift+J was pressed 3 times. This also occurs with just Ctrl+J for 'step'. (although the line break pattern differs). This does not occur when the 'step' button is used, nor when either of the menu options are used.
Before:

After:

Closing comment (2016-02-13T21:35:28Z): Closing; duplicate of #3830
Repository: processing/processing

Issue #668: workaround for loadImage(url) bug in Google's Android source
Created: 2013-02-10T16:46:51Z
Original author: pso...@gmail.com (April 17, 2011 16:27:36)
Problem can be reproduced with Basics->Web->LoadingImages example. It happens with certain image files only (somehow corrupted maybe?). Skia returns false and program terminates with NullPointerException. This is problem with Android skia. I've attached diff-file that will solve(not a perfect solution though) this problem. Code is implemented from http://groups.google.com/group/android-developers/browse_thread/thread/10a3821158f17be1?pli=1
More information about this problem can be found by Google search "skia decoder->decode returned false"
Ps. File is processing/android/core/src/processing/core/PApplet.java
Original issue: http://code.google.com/p/processing/issues/detail?id=629

Duplicate issue #1413: Undo sporadically triggers line number & corrupted display
Created: 2013-02-10T17:37:50Z
Original author: seanpkra...@gmail.com (November 04, 2012 09:44:07)
If possible, please attach the smallest possible sketch that reproduces
your problem. First make a tiny example, then use Tools -> Archive Sketch
to create a zip file, and then attach it to this bug report.
What steps will reproduce the problem?

I don't have steps; it's random.  I am using multiple tabbed classes with a large sketch.
If I undo across tabs (as described in earlier bug reports), the line numbers change.
Corrupted display makes certain lines un-selectable.

What is the expected output? What do you see instead?
Expected output is continued text editing abilities.  Instead, as I move cursor up or down thru the lines, the line number reported will skip around, like "123," "124," "125," [cursor disappears] "123-127" and that line will have some strange, half-rendered, non-selectable chunk of code which isn't actually there on quit/restart.
What version of the product are you using? On what operating system?
P2.0b6 / WinXP 32 SP3
Please provide any additional information below.
See .jpg.  the unselectable text is the short bits of lines at the left margin.
Note: Please do not link to locations on other sites, such as your own
image site, video site, blog, etc. Include the relevant information here with the report.
Original issue: http://code.google.com/p/processing/issues/detail?id=1375

Closing comment (2013-02-10T17:37:51Z): This issue is a duplicate of #668
Repository: processing/processing

Issue #52: save as/rename don't properly set focus
Created: 2013-02-10T15:50:56Z
Original author: b...@processing.org (June 06, 2010 23:51:05)
This bug automatically added from:
http://dev.processing.org/bugs/show_bug.cgi?id=31
Comment from fry, 2005-05-12 20:25
this is particularly nasty to get working properly across all of the
platforms. some methods work on osx, others on windows, and who knows on linux.
http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_Software;action=display;num=1075149929
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1115487608;start=0
Original issue: http://code.google.com/p/processing/issues/detail?id=13

Duplicate issue #357: Serial.write problem with Bluetooth SPP virtual serial port
Created: 2013-02-10T16:22:20Z
Original author: neve...@freemail.hu (July 16, 2010 15:30:06)
Hi!
With Processing (version 1.2.1) I wanted to control a LED connected to an ATmega8 based circuit. I have used the following Bluetooth UART module:
http://www.elechouse.com/elechouse/index.php?main_page=product_info&amp;cPath=90_91&amp;products_id=647
Everithing is working fine except Processing.
I ham using IVT BlueSoleil to pair and connect my device to my PC and set up a Bluetooth SPP virtual serial port (COM22 in my case). I try to send the 'H' and 'L' characters to my circuit serially to switch the LED on/off. If I use HyperTerminal or any other serial terminal program connected to COM22, everything is working fine (if I send 'H' / 'L' wirelessly the LED is on / off, so the bluetooth virtual serial link is working properly), only Processing can not handle this virtual COM port. In Processing I try to use the SimpleWrite example sketch to send 'H' and 'L' to COM22, but I get a lot of error messages and Processing freezes (see picture below).
If I use an FTDI chip based USB to UART adaptor, and connect my circuit to my PC with USB cable and use Processing with the example sketch, everithing is working fine. ( http://toysdownunder.com/arduino/arduino-ftdi-5v.html ) So it seems that Processing becomes crazy when I try to use a virtual serial COM port based on a Bluetooth device, or maybe BlueSoleil do something weird, but the HyperTerminal and Hercules 3-2-3 serial terminal programs could handle this port only Processing not.
( I am using Win XP, and I have tried the SimpleWrite example sketch with the default serial settings 9600, 8,N,1)
Can anybody help me solving this issue?
Thanks
Original issue: http://code.google.com/p/processing/issues/detail?id=318

Closing comment (2013-02-10T16:22:23Z): This issue is a duplicate of #52
Repository: processing/processing

Issue #3401: P2D and P3D windows behave strangely when larger than the screen size
Created: 2015-06-18T16:28:15Z
JOGL's GLWindow has a peculiar way of handling sizes that are larger than the display: if the window's height surpasses the display's height, then the window's height is capped at the display's. In addition to that, the canvas is attached to the lower left corner so the contents come out of the viewport from the top. Haven't found a way in JOGL to chance this behavior and make it consistent with the rest of the renderers.
To check by yourself, run this code making sure that the height is larger than the current display's height:
void setup() {
  size(512, 1000, P3D);
}

void draw() {
  background(150);
  line(0, 0, width, height);
  line(0, height, width, 0);
}
you should be getting something like this:

Duplicate issue #3584: P2D and P3D sketches won't exceed screen size
Created: 2015-08-12T04:11:24Z
Sketches that have a size larger than the screen are resized to fit the screen in P2D and P3D on Mac OS X 10.10.3 on Processing 3 beta 3 and the prior betas as well. For example:
void setup() {
  size(200, 3000, P3D);
}

void draw() {
  line(0, 0, width, height);
}

Closing comment (2015-08-12T11:22:34Z): this issue was originally reported in #3401
Repository: processing/processing

Issue #320: add variable/constants for processing implementation (js, android, desktop, etc)
Created: 2013-02-10T16:19:51Z
Original author: fjen...@gmail.com (June 27, 2010 09:16:11)
With the increasing number of implementations it would be really handy to add a flag for the environment to the API similar to "online".
Original issue: http://code.google.com/p/processing/issues/detail?id=281

Duplicate issue #1922: An ifdef construct for android/java sketches
Created: 2013-06-26T06:52:51Z
When I develop both a sketch to run on both android and on the desktop there is a need for an #ifdef like construct for library loading, input, and initialization purposes. Currently I have to either run an external preprocessor such as mcpp, then load the sketch, rinse and repeat for a switch to android / java mode... or I can maintain separate codebases for <100 lines of code. I think it would be fairly easy to implement into the processing preprocessor, is this within the scope of project or is it considered unnecessary complexity?

Closing comment (2013-07-07T12:11:28Z): See #1637 and #1689, which is closed as duplicate of #320.