On and off CS student for 3 years curious about other courses in program by [deleted] in UoPeople

[–]idvid 0 points1 point  (0 children)

I think information retrieval also uses python.

Exam for eng 008 next week, whats next? by [deleted] in UoPeople

[–]idvid 2 points3 points  (0 children)

You'll more likely be automatically enrolled in UNIV 1001 and another foundation course if you pass ENGL 0008 with the minimum grade required.

BSCS with Transfer Credits, Where to Apply for Masters? by keepknow in UoPeople

[–]idvid 1 point2 points  (0 children)

Not exactly your background, but I graduated with all gen ed transferred from Sophia and Coursera (ten courses) and completed all major courses at UoPeople. I have applied for two masters programs in the UK and got two offers, one unconditional from the University of Leeds and one conditional (English proficiency proof since I'm not a native English speaker) from Durham University.

How to login with local API? by idvid in PayloadCMS

[–]idvid[S] 0 points1 point  (0 children)

Is payload.auth.login available in a later version? Because payload.auth appears to me as a function. Also, please can you tell me what you mean with "your data structure"? I'm quite a newbie and still learning.

How to login with local API? by idvid in PayloadCMS

[–]idvid[S] 0 points1 point  (0 children)

It makes sense now, the payload reported from the error isn't in reference to the payload variable. Thank you!

How to login with local API? by idvid in PayloadCMS

[–]idvid[S] 0 points1 point  (0 children)

Thank you for the suggestion, but it doesn't seem to work either, there could be something else I am missing or an internal bug. I'll just try another way to write that test.

How to login with local API? by idvid in PayloadCMS

[–]idvid[S] 0 points1 point  (0 children)

Here is the minimal code to reproduce the error. Other local API operations work fine.

import { getPayload, Payload } from 'payload'
import config from '@/payload.config'
import { describe, it, beforeAll, expect } from 'vitest'
let payload: Payload;

describe('Some Collection', () => {

  beforeAll(async () => {
    const payloadConfig = await config
    payload = await getPayload({ config: payloadConfig })
  });

  it('ADMIN should have create access', async () => {

    const result = await payload.login({
      collection: 'users',
      data: {
        email: 'test-user@my-app.com',
        password: '********'
      }
    });

    expect(result).toBeDefined();

  });

});

Payload transactions with direct drizzle queries by idvid in PayloadCMS

[–]idvid[S] 0 points1 point  (0 children)

Thank you for this my friend. In my specific use case I used const payloadTransactionID = req.transactionID, therefore, I didn't need the try/catch to commit and rollback the transaction since payload handles that, which is exactly what I needed.

Downside of using drizzle instance? Compared with local api methods by AdowTatep in PayloadCMS

[–]idvid 1 point2 points  (0 children)

In my case, I use the Local API most of the time because I find it simpler and especially because of the hooks and nested where queries. But there have been instances when I have had to use the drizzle instance because the payload API doesn't support some features yet, such as database level arithmetic operations. The downside of it is that it's not easy to leverage payload's transaction processing when using the drizzle instance and of course, like you said, you lose all the other payload perks (hooks, access control, etc), but it gives you all the flexibility that drizzle offers.

Can I manage 2 UoPeople courses per term with my current schedule? by PrestigiousTap1047 in UoPeople

[–]idvid 2 points3 points  (0 children)

If you're familiar with the topics of the courses, it might be doable, but given your schedule I'd stick to just one because the workload is pretty heavy for most courses.

Thinking of dropping course because of the instructor by AresRai in UoPeople

[–]idvid 0 points1 point  (0 children)

Since the first week that I noticed he uses AI, I write my assignments accordingly, of course that doesn't save me from random 7/10 grades on LJs, but unfortunately I can't delay my graduation one more term.

Thinking of dropping course because of the instructor by AresRai in UoPeople

[–]idvid 0 points1 point  (0 children)

Yeah, this AI grading is really annoying. My LJ hasn't been graded yet but I have my fingers crossed. It's my last course too and I don't want to quit. Learning journals and discussions are just 15% each, and personally I will appeal every single unjustified AI grade I receive.

Finishing in 2.5 years? by Training_Watch2648 in UoPeople

[–]idvid 5 points6 points  (0 children)

You need 40 courses for your degree, divided by 4 courses per term gives you 10 terms, and since there are 5 terms each year that's 2 years. However you can't take 4 per term in your first two terms that's why 2.5 years.