nextcloud-libraries / nextcloud-libraries/rector

Replace OC jobs classes with OCP ones

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
3
Forks
1
Avg merge
11m
Merged PRs (30d)
1

Description

Jobs classes had both OC and OCP version between their introduction in 15 and the removal of the OC versions in 29.

Good candidate for a rector rule.

https://github.com/nextcloud/server/pull/43387

Also execute method call should be replaced to call start.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Nextcloud server pull request and the existing Rector upgrade rules and tests. Identify the OC-to-OCP job class replacements and the execute-to-start method change described in the issue. Done means the rule covers those migrations and its tests verify the transformed code.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.