Pnpjs: [2.0.0] sub module: GRAPH-users

Created on 7 May 2019  路  10Comments  路  Source: pnp/pnpjs

This issue tracks the review and preparation of a sub module for the 2.0.0 project. To finalize a sub-module the follow steps should be performed:

  • [ ] Code review for TODO (do), commented out code (remove), ensure interfaces are prefixed with an "I", or not using await
  • [ ] Ensure every property/method has at least one test
  • [ ] Ensure all of the interface method/properties are commented
  • [ ] Remove comments from class implementation files
  • [ ] Ensure the docs page is updated to mention each method/property with at least a minimal example
  • [ ] Search in closed issue by the label "area: sample" to see if any apply to the module you are review and add those as appropriate to the documentation
  • [ ] Review/compare the code in the 1.x branch to ensure any fixes, updates, or changes are in 2.0

Once complete submit one PR per module for final review. Please make the title match the issue title and reference the issue in the body of the PR. It will then be reviewed so please check back for any feedback or questions.

Most helpful comment

All you @baywet!

All 10 comments

hey @simonagren I can take this one :)

All you @baywet!

ramping up here, I think I'm not understanding something properly
I created /test/graph/users.ts with the following content

import { testSettings } from "../main";
import {graph } from "@pnp/graph";
import "@pnp/graph/src/users";
import "@pnp/graph/presets";
import { expect } from "chai";

describe("Users", function () {
    if (testSettings.enableWebTests) {
        it("gets current user", async function() {
            const me = await graph.me.get();
            return expect(me).not.null();
        });
    }
});

However it's complaining the get method doesn't exist on me. I'm probably missing something in terms of imports but not sure what at this point.
Thanks for the help!

@baywet you don't need to use .get()
It's self-invokeable, or what it's called :)
So:

const me = await graph.me();

Sorry for late reply :D

YoYo @baywet....how are things going with you man! Hope all is well... :)

We wanted to check-in and see how you are going with the current item and if you needed any help or had any questions?

We are aiming for a Release Candidate Beta by the end of September and wanted to follow up with the issues which are "In progress" to see how things are going.

Thank you so much again for helping out and looking forward to hearing from you. :)

Hey @PopWarner !
Thanks for checking-in. TBH I took some time off and slowed down during summer (they are short up here in Montr茅al so you might as well enjoy those as much as you can)
I don't want to be a blocker so feel free to re-assign if you have somebody else that wants it. But I don't see myself working on that before a few weeks.

@baywet you definitely have to take advantage of that!! :)

I'll open it back up and definitely ping back if you want to work on of the other ones in the future. Thanks for the quick response. 馃憤

@PopWarner just submitted a draft pull request. There are probably things that are missing/not done properly but hopefully with a few iterations we'll be able to align it :)

@baywet sweet!!! Thank you my man. I'm gonna go ahead and take off the "help wanted" and put back on the "in progress"! Thanks again for the help! :)

PR has been approved, Issue probably can be closed now

Was this page helpful?
0 / 5 - 0 ratings