Tongyan Alpha Sprint: Team Code Standards, Sprint Tasks, and Plans
| Item | Description |
|---|---|
| Which course does this assignment belong to? | 2601_FZU-MU_SE Software Engineering |
| Where are the requirements for this assignment? | Fifth Assignment: Alpha Sprint |
| Team Name | Tongyan |
| The goal of this assignment | Connect recruitment and team formation in the prototype to user accounts and a database. Project owners can publish openings, and students can find, bookmark, and apply for them, then join by accepting an invitation. |
| Other references | Tongyan SRS V1.1, prototype design records, W1 requirements handover, W2 engineering verification records, and the Tongyan project repository |
Table of Contents
- 1. Sprint Objectives and Starting Point
- 2. Team Code Standards
- 3. Team Assignments and Acceptance Criteria
- 4. Eight-Day Sprint Schedule and Progress Tracking
- 5. Integration Testing and Risk Management
1. Sprint Objectives and Starting Point
Tongyan serves university students interested in research projects, competitions, undergraduate innovation projects, and course projects. The Alpha release focuses on whether a first-year student can find an opening that fits their skills and availability, apply for it, and join the team. The sprint runs from November 21 to 28, 2026. The assignment is due on November 29, 2026, at 23:59. This post documents the sprint plan.
Before the sprint, the static prototype covered the Project Library, personal Workspace, and team workspace. W2 locally verified registration by invite code, login, recruitment draft editing, publishing, and filtering by multiple criteria. For this sprint, the Interaction and Frontend group will connect the existing prototype pages to FastAPI and PostgreSQL. The Vue integration pages serve as an API reference, and the product pages build on the existing Tongyan prototype.
The main Alpha acceptance scenario uses two accounts. A project owner publishes an opening that accepts beginners, requires at least four hours per week, and has one available place. A student finds it using the direction, availability, and beginner eligibility filters. The student bookmarks it, checks that it remains visible after signing in from another browser, completes their profile, and applies. The owner sends an invitation, and the student accepts it to join the team. The testing group uses two applicants in a separate scenario to verify allocation of the last place, and also checks expired invitations, repeated acceptance requests, and access across teams.
| Area | Expected Result |
|---|---|
| Recruitment and discovery | Owners can edit and publish projects with multiple roles. When a student selects “Accepts beginners” and “Up to 4 hours per week,” the same role must satisfy both conditions. Project details show prerequisites, responsibilities, time commitment, available places, and the deadline. |
| Personal Workspace | Profiles and bookmarks persist by account. Students can still see their own bookmarks and applications after signing in again or switching browsers. If a project becomes unavailable, the page explains why and disables the application entry point. |
| Team formation | A submitted application shows “Pending Review.” Once invited, the student can see the acceptance action and expiry time. Successful acceptance changes the status to “Joined” and opens access to the corresponding team workspace. |
| Recommendations and resources | The same sample data produces the same rule-based ranking. Recommendation reasons match the actual role fields. Introductory resources include an author, source, and update date. |
During the sprint, the recommendation group will deliver rule-based recommendations and explanations based on actual openings. The Clubs and Knowledge Base group will provide samples with source and permission details. Cloud model Q&A, the full task board, and community content moderation follow acceptance of the core team formation workflow.
2. Team Code Standards
2.1 Files, Naming, and Formatting
| Area | Standard |
|---|---|
| General | Use UTF-8. Give each file a clear responsibility. Use comments to explain business decisions, such as why accepting an invitation requires another capacity check. |
| Frontend | Follow the prototype's existing HTML, CSS, and JavaScript structure. Use camelCase for JavaScript variables and functions, kebab-case for CSS classes, and two-space indentation. Organize requests, state transitions, and rendering separately. Add Chinese and English messages to the existing translation entries. Reuse project cards, forms, and status badges. |
| Backend | FastAPI routes validate inputs. The business layer handles state transitions and transactions. Use four-space indentation in Python, snake_case for modules, functions, and variables, and PascalCase for classes. Define request and response models and execute parameterized SQL. |
| Database | Use snake_case for tables and fields. Manage schema changes with Alembic and include the matching migration with each schema change. Use foreign keys to enforce relationships and unique constraints to prevent duplicate bookmarks and memberships. Wrap related state changes in one transaction. |
Build on the prototype's existing folders and scripts. Gradually replace direct reads and writes to simulated browser state with API calls. Update bookmark icons, application status, or team links after a successful response. Disable repeat actions while a write is in progress. Preserve input and offer a retry when requests fail. Preserve forms and filters when users switch languages. Check keyboard operation and narrow layouts for new controls.
Document the tables, indexes, and affected data in each migration. Verify it against both an empty database and a test database containing W2 data. Projects, roles, applications, and memberships have their own IDs and are linked by foreign keys. The database governs available places and membership state. Generate temporary data through test scripts and make the fixtures and test clock resettable so deadline and expiry scenarios can be reproduced.
2.2 APIs, Permissions, and Workflow States
- Keep the API prefix
/tongyan/api/v1. Use the fields and status values defined in the API contract. Return a stable error code, a message, and a request ID on failure. Use the error code to guide feedback on the page and preserve form input. Update examples and frontend integration notes alongside API changes. - Identify the acting user through the server-side session. Students can view their own applications, and owners can process applications for their own projects. Team workspace access follows membership. Keep the existing request origin and CSRF checks for writes. Keep passwords, tokens, and private profile data out of logs and read secrets from runtime configuration.
- The main application sequence is “Pending Review → Invitation Awaiting Acceptance → Joined.” Handle withdrawal, rejection, and expiry as separate outcomes. An invitation lasts 72 hours. Sending it leaves the available place open. Acceptance checks the user, status, deadline, and capacity within a database transaction. Repeating a successful acceptance returns the existing membership.
- Check project visibility, recruitment status, available places, and minimum time commitment before presenting recommendation reasons. Submit applications and create memberships through the corresponding business endpoint after the user's confirmation.
| Current State | Actor and Action | Result and UI Feedback |
|---|---|---|
| No application | The student selects a role and submits an application statement. | Save the application and a profile snapshot. Return the application ID and “Pending Review.” A repeat submission shows the existing application. |
| Pending Review | The student withdraws, or the owner reviews the application. | Withdrawal closes the application. The owner can reject it or send an invitation. Both parties can see withdrawal and rejection outcomes. |
| Invitation Awaiting Acceptance | The student accepts or declines the invitation. | On acceptance, recheck the expiry time, recruitment status, and available places. Successful acceptance opens the team workspace. Declining closes the application. |
| Invitation expired or role full | The student attempts to accept. | Preserve existing records, explain the reason, and provide a link back to the Project Library. Membership remains unchanged. |
| Joined | The student repeats the same acceptance request. | Return the original membership ID. Available places and the member count remain unchanged. |
An API handover includes one successful request and one failed request. Each example identifies the acting role, inputs, status code, and expected UI feedback. For bookmarks, applications, and invitations, distinguish expired sessions, inaccessible resources, incomplete fields, and workflow conflicts. Keep unauthorized team and application data out of response bodies.
2.3 Git Collaboration and Merge Rules
- Use GitHub Issues to record tasks, owners, dependencies, and acceptance criteria. Use Feishu to coordinate integration work and report blockers. Develop each change on its own branch, such as
feat/alpha-application. Link the relevant commits to the Issue. - Describe the user-facing or system behavior in each commit message, for example
feat: persist project bookmarks across sessions. Keep each commit focused on its task. Store generated directories, virtual environments, database backups, and real configuration outside version control. - Merge through pull requests (PRs). Include the related Issue, run instructions, verification results, and screenshots where applicable. The group consuming an API reviews changes to that API. The Business and Data Modeling group and the testing group review changes to workflow states and capacity. Run migrations against an isolated test database before merging.
- Close an Issue once its evidence can be verified. Developers provide linked commits or PRs. Testers provide cases and reports. The Product and Knowledge Base groups provide acceptance procedures, field definitions, or reviewed resource lists.
Issue records. Include the user scenario, task ID, API dependencies, acceptance method, and actual result. For A07, have two students try to accept the last place at the same time. Attach the PR for the migration and transaction changes, the concurrency test result, and the feedback displayed to the student who did not get the place. Update the Issue and sprint scope when acceptance criteria change.
Pre-merge checks. Exercise successful and failed business flows. For database changes, run the Alembic migration and relevant pytest cases. For frontend changes, check desktop and mobile layouts and compare requests with the resulting server state. For documentation changes, verify links, task IDs, and access to evidence. The project coordinator records the branch and database versions used for integration.
3. Team Assignments and Acceptance Criteria
The team retains its 13-member structure. Group leaders are listed first. A01–A11 are sprint tracking IDs. Once linked to GitHub Issues, they will be included in the Sprint Essays.
| Responsibility | Members | Sprint Tasks and Deliverables |
|---|---|---|
| Project Coordination | Yin Yiping | A01 Set up the task board and document the integration version and environment. Track dependencies and progress, organize two-account acceptance, and gather links to the four Sprint Essays and evidence for the defense. |
| Product and User Research | Chen Guanjie, Chen Ziyang | A02 Review beginner eligibility, time requirements, profile completeness, and status messages. Deliver a two-account walkthrough from finding a role to joining the team, with expected results for each key state. |
| Interaction and Frontend | Wu Yiyun, Wang Yihan | A03 Connect project details, profiles, and bookmarks to the API. A04 Connect the application form, Workspace, owner review and invitation actions, and student acceptance. Check desktop and 360-pixel viewports. |
| Business and Data Modeling | Lin Junchen, Chen Ziyuan, Huang Zijun | A05 Add migrations and APIs for profiles and bookmarks stored by account. A06 Implement application submission, withdrawal, review, and invitation states. A07 Implement transactional membership confirmation, capacity checks, and retry handling. Deliver API examples. |
| AI and Intelligent Recommendation | Wang Yizhen, Xu Zidong | A08 Build reproducible rule-based recommendations using actual role data. Show matching attributes, prerequisites, and differences in time availability. Use fixed samples to verify the reasons and the no-results feedback. |
| Clubs and Knowledge Base | Wu Haodong | A09 Assemble initial club participation links and introductory resources. Record author, source, permission, and update time. Check the fields displayed for each item. |
| Testing and Documentation | Chen Xin, Liu Yiyao | A10 Use pytest to cover account isolation, bookmarks across sessions, repeated applications, expired invitations, and concurrent attempts to accept the last place. A11 Walk through the core workflow in two browsers and at mobile width. Deliver test cases, screenshots, and defect records. |
The Product group delivers the state definitions and acceptance procedure first. The business group prepares API examples based on them, and the frontend group uses the same account, project, and role IDs for integration. The recommendation group uses the same role records to test prerequisite and time matching. The testing group uses separate accounts and records reproduction steps, expected results, and actual results for defects.
| Handover | Deliverable | How the Receiving Group Verifies It |
|---|---|---|
| A01 and A02 → All groups | Sprint board, shared fixtures, and role field definitions. Fixtures include two students with separate accounts, one owner, an active role, and an expired project. Both students receive invitations for the concurrency scenario. | Use the same version tag and fixtures. Check that the deadline is consistent with the test clock. |
| A05 → A03 | APIs for profiles and bookmarks, including unavailable projects. Document required fields, idempotency, and permissions. | Save a profile and bookmark, then verify the same account can read them after refreshing or signing in with another browser. |
| A06 and A07 → A04 | Application lists for students and owners, review and invitation actions, acceptance and expiry feedback, status values, deadlines, and error examples. | Students can see only their own applications. Owners can review applications for their projects. The invited student gains team workspace access on successful acceptance. |
| A08 and A09 → Product and Frontend | Sample inputs and outputs for rule-based recommendations, plus a source list for club information and introductory resources. | Prerequisites, time commitments, and recruitment conditions match the Project Library, and resources link to identifiable sources. |
| A10 and A11 → All groups | The tested version, test account roles, expected and actual results, evidence of failures, and retest records. | After a fix, rerun the failed steps with the same data and record the new result and corresponding commit. |
4. Eight-Day Sprint Schedule and Progress Tracking
| Dates | Planned Work | Evidence to Collect |
|---|---|---|
| November 21–22 | Align UI states, migrations, and API contracts. Integrate profiles and bookmarks, and verify that the existing frontend can read recruitment data. | Field and state definitions, initial migration and API commits, and screenshots of student searches or bookmarks. Publish Sprint Essay 1 on November 22. |
| November 23–24 | Connect application submission, the Workspace, and owner review. Prepare recommendation explanations and sample introductory resources. | Runtime evidence of “Pending Review” and “Invitation Awaiting Acceptance,” linked Issues and commits, and cross-session bookmark results. Publish Sprint Essay 2 on November 24. |
| November 25–26 | Connect invitation acceptance and team access. Verify expiry, repeated acceptance, and concurrent attempts to take the last place. | Screenshots or a short video of the two-account walkthrough, pytest results, and defect records. Publish Sprint Essay 3 on November 26. |
| November 27–28 | Fix blockers and run regression checks. Review the mobile layout, permissions, and demo build. Gather evidence for the Testing Essay and Sprint Summary Essay. | A runnable build, the burn-up chart, final regression results, and slides or other evidence for the defense. Publish Sprint Essay 4 on November 28. |
| Date | Daily Plan |
|---|---|
| November 21 | Set up Issues and the integration environment. Review role fields, empty states, and failure messages. Agree on fields, status values, and API examples. |
| November 22 | Verify profile and bookmark migrations on the test database. Connect read-only queries first, then test bookmark writes and retrieval in another browser. Prepare Sprint Essay 1. |
| November 23 | Implement application submission, the student's application list, and the owner's list. Add cases for incomplete profiles and repeat submission. |
| November 24 | Integrate owner review and invitations with the student's Workspace. Verify the recommendation baseline and document knowledge sources. Prepare Sprint Essay 2. |
| November 25 | Connect invitation acceptance and the team workspace. Check capacity updates and isolation between teams. |
| November 26 | Run expiry, retry, and concurrency cases. Record the main workflow in two separate browsers. Prepare Sprint Essay 3. |
| November 27 | Fix blocking defects, rerun failed cases, and check UI states on mobile and desktop. |
| November 28 | Verify the delivery build, record the actual scope and open items, and save current screenshots and test results. Prepare Sprint Essay 4. |
| Milestone | Planned Cumulative Acceptance | Tasks |
|---|---|---|
| Sprint start | 0 / 11 | Record the initial scope |
| November 22 | 4 / 11 | A01, A02, A03, A05 |
| November 24 | 7 / 11 | Add A06, A08, A09 |
| November 26 | 9 / 11 | Add A04, A07 |
| November 28 | 11 / 11 | Add A10, A11 |
The burn-up chart starts with 11 tasks, A01–A11. Count A01 once the board and integration environment are available to all groups. Continue gathering progress and defense materials throughout the sprint. The horizontal axis shows dates. The vertical axis shows task counts, with one line for total scope and one for actual cumulative accepted tasks. The table gives the planned milestones. Keep work in progress on the board until it passes acceptance. Record any scope changes and the relevant Issues in the Sprint Essays.
Each Sprint Essay includes three types of evidence. For runtime evidence, use current screenshots, GIFs, or videos of the program or module. For development, include the Issue, what was committed, and a commit link or screenshot. For testing and other work, include concrete outputs such as a test report, test case screenshots, field definitions, or a resource list. Under the assignment rules, missing runtime evidence costs 1.5 points on the corresponding Sprint Essay. Missing development records or missing outputs for testing or other work cost 1 point each. Assignment notice
Check submission of the Testing Essay, Sprint Summary Essay, and Topical Collection of Essays before November 29 at 23:59. The defense PPT will cover the burn-up chart, an end-to-end team formation demo with two accounts, completed scope, remaining issues, and the plan for the next sprint.
5. Integration Testing and Risk Management
| Check | Reproduction Steps and Passing Criteria |
|---|---|
| Combined filters | Prepare one beginner-friendly role that requires four hours per week. In a different project, prepare two roles with different conditions: one requiring three hours but closed to beginners, and one accepting beginners but requiring six hours. When filtering for beginner eligibility and up to four hours, only the first role is returned. |
| Bookmarks and privacy | Bookmark the same project repeatedly and sign in again. The list contains one entry. Remove it and refresh to verify the removal persists. Use another account to confirm that bookmarks and applications are isolated by account. |
| Expiry and retries | Try to accept an invitation more than 72 hours after it was issued. The Workspace shows that it has expired, and the member count stays the same. Retrying a request that already succeeded returns the same membership ID. |
| Concurrent capacity checks | Have two separate accounts accept invitations for the last place at the same time. One request creates a membership, and the other receives a role-full message. Available places in other roles remain unchanged. |
| Interface and runtime | On the owner side, check review, invitations, and membership records. On the student side, complete filtering, application, and acceptance at a 360-pixel viewport. Record the browser, tested version, and error feedback observed. |
If frontend and backend work progress at different speeds, use the agreed API examples to verify forms and status displays, then rerun browser acceptance when the live API is available. Check recruitment fixture deadlines before each integration round. If concurrency or permission tests fail, fix membership and access control before accepting recommendations and later tasks. If the model service is slow, use the reproducible rule-based recommendations and standard filters for the demo. Record the actual scope in the corresponding Sprint Essay.
相关推荐
复现基于李雅普诺夫的模型预测控制MPC水下机器人AUV方法路径跟踪(Matlab代码实现)
内容概要:本文系统介绍了基于李雅普诺夫稳定理论的模型预测控制(MPC)方法在水下机器人(AUV)路径跟踪中的应用,并提供了完整的Matlab代码实现。该方法融合MPC的多步预测与滚动优化优势,通过构造李雅普诺夫函数严格证明闭环系统的渐近稳定性,有效提升了AUV在复杂海洋环境下的轨迹跟踪精度、抗干扰能力与控制鲁棒性。文档不仅详述了控制系统建模、约束处理与稳定性分析的关键步骤,还配套列举了大量相关科研资源,涵盖路径规划、运动控制、智能算法等多个方向,突出其在顶刊算法复现、科研验证与工程仿真中的高参考价值。; 适合人群:具备自动控制理论、机器人学或海洋工程等相关专业背景,熟悉Matlab/Simulink仿真工具,且具有一定控制算法基础的研究生、科研人员及自动化领域工程技术人员。; 使用场景及目标:①开展水下机器人高精度路径跟踪控制算法的研究与仿真验证;②深入学习李雅普诺夫稳定性理论与MPC控制策略的有机结合方法;③作为高水平期刊论文复现的技术支撑,服务于科研项目推进、学术论文撰写与算法创新设计; 阅读建议:建议结合文档中提及的反步法、滑模控制、非线性MPC等先进控制技术进行对比分析,重点研读代码中的动力学建模、优化问题构建、约束处理机制与稳定性证明逻辑,根据具体研究需求灵活调整系统参数与仿真场景,以实现最优控制性能并深化理论理解。
风光火储多源协同参与电网一次调频与二次 AGC 调频控制策略研究(Simulink仿真实现)
内容概要:本文聚焦于风光火储多源协同参与电网一次调频与二次AGC调频控制策略的研究,基于Simulink平台构建完整的多能源系统仿真模型,深入探讨风力发电、光伏发电、火力发电与储能系统在电网频率调节中的协同工作机制。研究系统分析了一次调频的快速响应特性与二次自动发电控制(AGC)的动态调节能力,重点设计并验证了多源协调控制算法,通过仿真评估不同电源间的出力互补性与动态响应性能,有效提升了含高比例新能源电网的频率稳定性和运行可靠性,具有突出的理论深度与工程应用价值。; 适合人群:适用于具备电力系统分析、自动控制理论及新能源并网技术背景的研究生、科研人员以及从事电网调度、新能源集成与储能系统设计的工程技术人员。; 使用场景及目标:①研究多能源系统协同参与电网频率调节的动态机制;②设计与优化面向复杂电网环境的一次调频与AGC协调控制策略;③开展新能源大规模接入背景下电网稳定性仿真分析;④支撑高水平学术论文撰写、科研项目申报或实际工程方案的技术验证与原型开发。; 阅读建议:建议结合Simulink仿真环境动手复现文中控制模型,对照控制逻辑与时序响应曲线深入理解多源协同控制的设计原理,同时可参考文中关联的MATLAB/Simulink案例进行拓展性研究与算法改进。
厂外外包管制作业规范.doc
制造技术
科技型中小企业申请政府资助时,孵化器管理系统需要提供哪些关键数据支撑材料?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。
地方发改委在评审成果孵化转化载体资质时,主要依据哪些核心指标体系?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。


