Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upcoming activities: Add MDM commands #15920

Open
11 tasks
noahtalerman opened this issue Jan 4, 2024 · 13 comments
Open
11 tasks

Upcoming activities: Add MDM commands #15920

noahtalerman opened this issue Jan 4, 2024 · 13 comments
Labels
~apple-mdm-maturity Contributes to maturity in macOS, iOS, or iPadOS MDM product category. customer-reedtimmer #g-mdm MDM product group story A user story defining an entire feature

Comments

@noahtalerman
Copy link
Member

noahtalerman commented Jan 4, 2024

Goal

User story
As an endpoint operator on the Host details page,
I want to see a list of the upcoming MDM commands and scripts
so that I know what upcoming commands/scripts will run on a specific host.

Objective

Mission critical MDM replacement

Original requests

Changes

Product

  • @noahtalerman: Solve this bug. Context is in the bug here: macOS host not shown as unlocked in the UI after entering unlock PIN #23624 (comment)
  • UI changes: Figma link
  • REST API changes: Figma link & API docs: upcoming activities - mdm commands #16872
  • Permissions changes:
    • Admins, maintainers, and observers can see all activity for hosts that they have access to.
    • A user w/ access to specific teams (not global) can only see activity for hosts assigned to this users team(s). If they hit GET /hosts/:id/activities or GET /hosts/:id/activities/upcoming for a host that they don't have access to, they'll get a forbidden response (403) with this error message: Error: You don’t have permission to view activities. The host belongs to a team you don’t have permissions to view.
  • Outdated documentation changes:
    • Add a GET /hosts/:id/activities and GET /hosts/:id/activities/upcoming section in the API for contributors docs. These sections will list all possible activities across all platforms and link to example usage in the REST API docs.
    • In the GET /hosts/:id/activities and GET /hosts/:id/activities/upcoming REST API docs link to the full list of all possible activities in contributor docs.
    • In the release article (or maybe it's own article) describe the first-in-first-out for scripts and MDM commands.
  • Changes to paid features or tiers: Available in Fleet Free and Fleet Premium

Engineering

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

Context

  • Requestor(s): _________________________

QA

Risk assessment

  • Risk level: Low

Manual testing steps

  1. Validate MDM & DDM activity shows up in feed.
  2. Validate Script activity shows up in feed.
  3. Validate API activity
  4. Validate loading & error state in UI
  5. Test upcoming & past feeds
  6. Verify details modal match Figma
  7. Test created, deleted, ran, installed...
  8. Test macOS, Windows, and Linux

Testing notes

NOTE: New users will be displayed in the activity feed, mdm commands that were run prior to update will show "a user"
Additional note: some of these tasks are already complete. e.g. Script and software installs

Confirmation

  1. Engineer (@____): Added comment to user story confirming successful completion of QA.
  2. QA (@____): Added comment to user story confirming successful completion of QA.
@noahtalerman noahtalerman added story A user story defining an entire feature ~feature fest Will be reviewed at next Feature Fest labels Jan 4, 2024
@noahtalerman noahtalerman changed the title Upcoming activities: add custom MDM commands and Fleet run MDM commands and scripts Upcoming activities: Custom MDM commands and Fleet MDM commands/scripts Jan 5, 2024
@noahtalerman noahtalerman added #g-mdm MDM product group :product Product Design department (shows up on 🦢 Drafting board) Epic DO NOT USE. Auto-created by ZenHub, cannot be disabled. and removed ~feature fest Will be reviewed at next Feature Fest Epic DO NOT USE. Auto-created by ZenHub, cannot be disabled. labels Jan 5, 2024
@noahtalerman noahtalerman changed the title Upcoming activities: Custom MDM commands and Fleet MDM commands/scripts Upcoming activities: Add MDM commands Feb 2, 2024
@noahtalerman
Copy link
Member Author

@georgekarrv heads up, we moved this story to "Settled." I think we can start the spec'ing process while Rachael takes a look at API design.

@rachaelshaw when you get the chance, can you please take a look at the API design in Figma?

Please let us know if y'all have any feedback or questions.

marko-lisica added a commit that referenced this issue Feb 15, 2024
API docs changes related to #15920
@georgekarrv georgekarrv added :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. and removed :product Product Design department (shows up on 🦢 Drafting board) labels Feb 19, 2024
@roperzh roperzh assigned roperzh and unassigned georgekarrv Feb 28, 2024
@lukeheath lukeheath added this to the 4.47.0-tentative milestone Mar 1, 2024
@georgekarrv georgekarrv added the ~pushed User story was pushed to next release. label Mar 1, 2024
@lukeheath lukeheath modified the milestones: 4.47.0, 4.48.0-tentative Mar 11, 2024
@noahtalerman noahtalerman removed their assignment Sep 12, 2024
@noahtalerman noahtalerman added :product Product Design department (shows up on 🦢 Drafting board) and removed ~feature fest Will be reviewed at next Feature Fest labels Sep 16, 2024
@noahtalerman
Copy link
Member Author

noahtalerman commented Sep 16, 2024

Hey @marko-lisica, heads up that I moved this story and "Fleet-initiated" story (#20712) into the drafting board.

When you get to this story, can you please bring Fleet-initiated designs into this story and close out the Fleet-initiated story (#20712) to simplify things for us? One story for adding MDM commands to the activity feed.

I think let's not worry about breaking up the story until we get to estimation.

@noahtalerman noahtalerman added ~feature fest Will be reviewed at next Feature Fest and removed ~feature fest Will be reviewed at next Feature Fest labels Oct 3, 2024
@noahtalerman
Copy link
Member Author

Hey @zayhanlon and @Patagonia121 heads up, this user story and the following stories didn't make it into the upcoming engineering sprint because we didn't wrap up designs in time.

They're still prioritized. We left it on the drafting board so that it can be pulled into the next engineering sprint.

@noahtalerman
Copy link
Member Author

Hey @marko-lisica @Patagonia121 and @zayhanlon, I pulled this user story and the following user stories off of the drafting board (de-prioritized)

We're prioritizing the "Upcoming activities run as listed (one queue) and can be canceled" story (#22866) first. This story, targeted for the next eng sprint (4.60), will simplify the piping (backend) so that we can build future activity feed features faster.

Then, the plan is to prioritize parts (or all) of #15920, #20301, #21681 in following engineering sprints.

@noahtalerman noahtalerman removed the :product Product Design department (shows up on 🦢 Drafting board) label Oct 14, 2024
@noahtalerman noahtalerman removed their assignment Oct 14, 2024
@noahtalerman noahtalerman added the ~feature fest Will be reviewed at next Feature Fest label Oct 24, 2024
@noahtalerman noahtalerman removed the ~feature fest Will be reviewed at next Feature Fest label Oct 24, 2024
@noahtalerman noahtalerman added the :product Product Design department (shows up on 🦢 Drafting board) label Oct 25, 2024
@noahtalerman noahtalerman added ~feature fest Will be reviewed at next Feature Fest and removed :product Product Design department (shows up on 🦢 Drafting board) ~feature fest Will be reviewed at next Feature Fest labels Nov 14, 2024
@noahtalerman
Copy link
Member Author

Pulled these questions from @mna out of Slack so we don't lose them:

  • I thought the upcoming queue would also show MDM commands, but the figma calls out only scripts and installed software/apps ? Did we cut MDM commands from the queue for now? (the ticket still mentions them as part of the queue)
  • It appears from the figma UI that fleet-initiated upcoming activities are not cancellable, but it's not called out explicitly in a dev note, is that the case?

My (@noahtalerman) response:

  • Re MDM commands, my understanding is that we were going to add them in a follow up story here: Upcoming activities: Add MDM commands #15920
  • Re Fleet-initiated commands, I think we want these to also be cancellable. It looks like the Figma is just hiding the hover state for the Fleet-initiated activities.

@marko-lisica, for when you're back in office, please let me know if I'm wrong about the above. Can you please update Figma to clarify that all activities are cancellable?

cc @PezHub

@marko-lisica
Copy link
Member

marko-lisica commented Jan 9, 2025

My (@noahtalerman) response:

Re MDM commands, my understanding is that we were going to add them in a follow up story here: #15920
Re Fleet-initiated commands, I think we want these to also be cancellable. It looks like the Figma is just hiding the hover state for the Fleet-initiated activities.

@noahtalerman This is right. Added this to a dev note.

@noahtalerman noahtalerman added :product Product Design department (shows up on 🦢 Drafting board) and removed :product Product Design department (shows up on 🦢 Drafting board) labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
~apple-mdm-maturity Contributes to maturity in macOS, iOS, or iPadOS MDM product category. customer-reedtimmer #g-mdm MDM product group story A user story defining an entire feature
Projects
None yet
Development

No branches or pull requests

7 participants