Get the features that belong to the current sprints

@param teamId		the team id
@param agileType		the agile type. Defaults to "scrum" if null
@param minimal		if the resulting list of Features should be minimally populated (see queries for fields)
@return
557259
private List<Feature> getFeaturesForCurrentSprints(String teamId, String projectId, ObjectId collectorId, String agileType, boolean minimal) {
		List<Feature> rt = new ArrayList<Feature>();
		
		String now = getCurrentISODateTime();
		
		if ( FeatureCollectorConstants.SPRINT_KANBAN.equalsIgnoreCase(agileType)) {
			/* 
			 * A feature is part of a kanban sprint if any of the following are true:
			 *   - the feature does not have a sprint set
			 *   - the feature has a sprint set that does not have an end date
			 *   - the feature has a sprint set that has an end date >= EOT (9999-12-31T59:59:59.999999)
			 */
		    rt.addAll(featureRepository.findByNullSprints(teamId, projectId, collectorId, minimal));
		    rt.addAll(featureRepository.findByUnendingSprints(teamId, projectId, collectorId, minimal));
		} else {
			// default to scrum
			/*
			 * A feature is part of a scrum sprint if any of the following are true:
			 *   - the feature has a sprint set that has start <= now <= end and end < EOT (9999-12-31T59:59:59.999999)
			 */
		    rt.addAll(featureRepository.findByActiveEndingSprints(teamId, projectId, collectorId, now, minimal));
		}
		
		return rt;
	}
1172577
public function team($teamId)
	{
		$team = $this->info['teams'];
		if (isset($team[$teamId]))
		{
			return $team[$teamId];
		}

		return null;
	}
997273
public function hasMemberInvitationOnTeam($teamId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $memberInvitationsOnTeam = $this->memberInvitations->filter(function ($memberInvitation) use ($teamId) {
            return ($memberInvitation->member->team_id === $teamId) && ($memberInvitation->member->status === "Invited");
        });
        /** @noinspection PhpUndefinedMethodInspection */
        return $memberInvitationsOnTeam->count() > 0;
    }
332797
public static ExtensionId toExtensionId(String groupId, String artifactId, String classifier, String version)
    {
        return toExtensionId(groupId, artifactId, classifier, version != null ? new DefaultVersion(version) : null);
    }
612159
public List<RaftMemberContext> getRemoteMemberStates(RaftMember.Type type) {
    List<RaftMemberContext> members = memberTypes.get(type);
    return members != null ? members : Collections.EMPTY_LIST;
  }
565099
function getBranchPreferences(context, configXml, branchXml) {
    return {
      projectRoot: getProjectRoot(context),
      projectName: getProjectName(configXml),
      branchKey: getBranchValue(branchXml, "branch-key"),
      linkDomain: getBranchLinkDomains(branchXml, "link-domain"),
      uriScheme: getBranchValue(branchXml, "uri-scheme"),
      iosBundleId: getBundleId(configXml, "ios"),
      iosProjectModule: getProjectModule(context),
      iosTeamRelease: getBranchValue(branchXml, "ios-team-release"), // optional
      iosTeamDebug: getBranchValue(branchXml, "ios-team-debug"), // optional
      androidBundleId: getBundleId(configXml, "android"), // optional
      androidPrefix: getBranchValue(branchXml, "android-prefix"), // optional
      androidTestMode: getBranchValue(branchXml, "android-testmode") // optional
    };
  }
800684
public ResolvedFeatures getResolvedFeatures(JvmDeclaredType type) {
		ITypeReferenceOwner owner = new StandardTypeReferenceOwner(services, type.eResource().getResourceSet());
		LightweightTypeReference contextType = owner.toLightweightTypeReference(type);
		return getResolvedFeatures(contextType);
	}
505572
def sprint(self, id):
        
        sprint = Sprint(self._options, self._session)
        sprint.find(id)
        return sprint
1223826
protected String getId(FaceletContext ctx)
    {
        if (this._id != null)
        {
            return this._id.getValue(ctx);
        }
        return ctx.generateUniqueId(_delegate.getTagId());
    }
1260389
public KarafFeaturesOption getDependenciesFeature() {
        if (subsystem == null) {
            return null;
        }

        try {
            File featuresXmlFile = new File(karafBase, "test-dependencies.xml");
            Writer wr = new OutputStreamWriter(new FileOutputStream(featuresXmlFile), "UTF-8");
            writeDependenciesFeature(wr, subsystem.getOptions(ProvisionOption.class));
            wr.close();
            String repoUrl = "file:"
                + featuresXmlFile.toString().replaceAll("\\\\", "/").replaceAll(" ", "%20");
            return new KarafFeaturesOption(repoUrl, "test-dependencies");
        }
        catch (IOException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
933359
@RequestMapping(value = "/team", method = GET, produces = APPLICATION_JSON_VALUE)
    public List<Team> allTeams() {
        return Lists.newArrayList(this.teamService.getAllTeams());
    }
491235
public Future<List<LeagueList>> getLeagues(String teamId) {
        return new ApiFuture<>(() -> handler.getLeagues(teamId));
    }
671576
public BaseTypeId getBaseTypeId(final Class<? extends GraphObject> type) {

		final CMISInfo info = getCMISInfo(type);
		if (info != null) {

			return info.getBaseTypeId();
		}

		return null;
	}
359579
public QuickWidget findWidgetByName(QuickWidgetType type, int windowId, String widgetName) {
    return desktopWindowManager.getQuickWidget(type, windowId, QuickWidgetSearchType.NAME,
                                               widgetName);
  }
1241377
def is_in_team(self, team_id):
        """"""

        if self.is_super_admin():
            return True
        team_id = uuid.UUID(str(team_id))
        return team_id in self.teams or team_id in self.child_teams_ids
1139746
public JSONObject getSpecificList(String company, String team, String code) throws JSONException {
        return _getByType(company, team, code);
    }
897853
public com.google.api.ads.admanager.axis.v201808.TeamAccessType getDefaultTeamAccessType() {
        return defaultTeamAccessType;
    }